mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
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 <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3949 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -210,7 +210,7 @@ static void vdisk_exec_read(struct scst_cmd *cmd,
|
||||
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 @@ static int vdisk_do_job(struct scst_cmd *cmd)
|
||||
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 @@ static int vdisk_do_job(struct scst_cmd *cmd)
|
||||
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_endio(struct bio *bio, int error)
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user