From: <vl...@us...> - 2011-12-02 02:42:27
|
Revision: 3949 http://scst.svn.sourceforge.net/scst/?rev=3949&view=rev Author: vlnb Date: 2011-12-02 02:42:21 +0000 (Fri, 02 Dec 2011) Log Message: ----------- The only two values passed into the last two arguments of blockio_exec_rw() are 0 and 1. Change their argument type from int to bool. BSD-signed-off-by: Bart Van Assche <bva...@ac...> Modified Paths: -------------- trunk/scst/src/dev_handlers/scst_vdisk.c Modified: trunk/scst/src/dev_handlers/scst_vdisk.c =================================================================== --- trunk/scst/src/dev_handlers/scst_vdisk.c 2011-12-02 02:41:15 UTC (rev 3948) +++ trunk/scst/src/dev_handlers/scst_vdisk.c 2011-12-02 02:42:21 UTC (rev 3949) @@ -210,7 +210,7 @@ static void vdisk_exec_write(struct scst_cmd *cmd, struct scst_vdisk_thr *thr, loff_t loff); static void blockio_exec_rw(struct scst_cmd *cmd, struct scst_vdisk_thr *thr, - u64 lba_start, int write, int fua); + u64 lba_start, bool write, bool fua); static int vdisk_blockio_flush(struct block_device *bdev, gfp_t gfp_mask, bool report_error); static void vdisk_exec_verify(struct scst_cmd *cmd, @@ -1053,7 +1053,7 @@ case READ_12: case READ_16: if (virt_dev->blockio) { - blockio_exec_rw(cmd, thr, lba_start, 0, 0); + blockio_exec_rw(cmd, thr, lba_start, false, false); goto out_thr; } else vdisk_exec_read(cmd, thr, loff); @@ -1064,7 +1064,7 @@ case WRITE_16: { if (virt_dev->blockio) { - blockio_exec_rw(cmd, thr, lba_start, 1, + blockio_exec_rw(cmd, thr, lba_start, true, fua || virt_dev->wt_flag); goto out_thr; } else @@ -2992,7 +2992,7 @@ } static void blockio_exec_rw(struct scst_cmd *cmd, struct scst_vdisk_thr *thr, - u64 lba_start, int write, int fua) + u64 lba_start, bool write, bool fua) { struct scst_vdisk_dev *virt_dev = cmd->dev->dh_priv; struct block_device *bdev = thr->bdev; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |