diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-08 13:02:48 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-12 08:04:04 -0600 |
commit | 1991299e49fa58c3ba7e91599932f84bf537d592 (patch) | |
tree | ed6f82a882837186dab69dc19d83bab2408150c1 /block/bsg-lib.c | |
parent | 2e80089c18241699c41d0af0669cb93844ff0dc1 (diff) | |
download | linux-1991299e49fa58c3ba7e91599932f84bf537d592.tar.gz linux-1991299e49fa58c3ba7e91599932f84bf537d592.tar.bz2 linux-1991299e49fa58c3ba7e91599932f84bf537d592.zip |
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>
Diffstat (limited to 'block/bsg-lib.c')
-rw-r--r-- | block/bsg-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg-lib.c b/block/bsg-lib.c index 435c32373cd6..b3acdbdb6e7e 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -26,7 +26,7 @@ struct bsg_set { }; static int bsg_transport_sg_io_fn(struct request_queue *q, struct sg_io_v4 *hdr, - fmode_t mode, unsigned int timeout) + bool open_for_write, unsigned int timeout) { struct bsg_job *job; struct request *rq; |