]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: sink zone check into btrfs_repair_one_zone
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 7 Dec 2021 14:28:36 +0000 (06:28 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:26 +0000 (14:18 +0100)
commitfcf0d275ce60bfed7a94d87f5cdafadfe552e9ac
tree2928f0e946007f16721f5d783d4aa1ee706fd261
parent6a37c88cb5d961d41e85e74cd1f28197397a6d50
btrfs: zoned: sink zone check into btrfs_repair_one_zone

Sink zone check into btrfs_repair_one_zone() so we don't need to do it
in all callers.

Also as btrfs_repair_one_zone() doesn't return a sensible error, make it
a boolean function and return false in case it got called on a non-zoned
filesystem and true on a zoned filesystem.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h