diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-08 13:02:42 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-12 08:04:04 -0600 |
commit | 2ef789288afd365f4245ba97e56189062de5148e (patch) | |
tree | ba66cd024c4da979a42e3022f0a244c9399e8fa3 /drivers/mtd/devices/block2mtd.c | |
parent | 5ee607675debef509946f8a251d4c30a21493ec2 (diff) |
btrfs: don't pass a holder for non-exclusive blkdev_get_by_path
Passing a holder to blkdev_get_by_path when FMODE_EXCL isn't set doesn't
make sense, so pass NULL instead and remove the holder argument from the
call chains the only end up in non-FMODE_EXCL blkdev_get_by_path calls.
Exclusive mode for device scanning is not used since commit 50d281fc434c
("btrfs: scan device in non-exclusive mode")".
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Acked-by: David Sterba <dsterba@suse.com>
Link: https://lore.kernel.org/r/20230608110258.189493-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/mtd/devices/block2mtd.c')
0 files changed, 0 insertions, 0 deletions