diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-01 11:44:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-05 10:53:03 -0600 |
commit | ae5f855ead6b41422ca0c971ebda509c0414f8ec (patch) | |
tree | 69db0b8d640254dfc4214988593395b48dc2a57e /COPYING | |
parent | 0783b1a7cbd9a02ddc35fe531b5966b674b304f0 (diff) |
block: refactor bd_may_claim
The long if/else chain obsfucates the actual logic. Tidy it up to be
more structured. Also drop the whole argument, as it can be trivially
derived from bdev using bdev_whole, and having the bdev_whole in the
function makes it easier to follow.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Link: https://lore.kernel.org/r/20230601094459.1350643-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions