scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Jun 2023 11:02:48 +0000 (13:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jun 2023 14:04:04 +0000 (08:04 -0600)
commit1991299e49fa58c3ba7e91599932f84bf537d592
treeed6f82a882837186dab69dc19d83bab2408150c1
parent2e80089c18241699c41d0af0669cb93844ff0dc1
scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool

Instead of passing a fmode_t and only checking it for FMODE_WRITE, pass
a bool open_for_write to prepare for callers that won't have the fmode_t.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230608110258.189493-21-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bsg-lib.c
block/bsg.c
drivers/scsi/scsi_bsg.c
include/linux/bsg.h