aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-06-01 09:44:45 +0000
committerJens Axboe <[email protected]>2023-06-05 16:53:03 +0000
commitae5f855ead6b41422ca0c971ebda509c0414f8ec (patch)
tree69db0b8d640254dfc4214988593395b48dc2a57e /fs/btrfs/dev-replace.c
parentblock: factor out a bd_end_claim helper from blkdev_put (diff)
downloadkernel-ae5f855ead6b41422ca0c971ebda509c0414f8ec.tar.gz
kernel-ae5f855ead6b41422ca0c971ebda509c0414f8ec.zip
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 <[email protected]> Reviewed-by: Jan Kara <[email protected]> Acked-by: Dave Chinner <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions