diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-01 09:44:45 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-05 16:53:03 +0000 |
| commit | ae5f855ead6b41422ca0c971ebda509c0414f8ec (patch) | |
| tree | 69db0b8d640254dfc4214988593395b48dc2a57e /fs/btrfs/dev-replace.c | |
| parent | block: factor out a bd_end_claim helper from blkdev_put (diff) | |
| download | kernel-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
