diff options
author | Christoph Hellwig <hch@lst.de> | 2022-09-07 11:22:14 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:28:02 +0200 |
commit | 650c8a9c7d88f06c23a9794388623822f068a5df (patch) | |
tree | 275bc84c444529abbc2a7be4a61735cf114d73de /fs/btrfs/space-info.c | |
parent | 03ad25310fd45e52ab3a5a3c3e367aec4f7bd364 (diff) |
btrfs: zoned: refactor device checks in btrfs_check_zoned_mode
btrfs_check_zoned_mode is really hard to follow, mostly due to the
fact that a lot of the checks use duplicate conditions after support
for zone emulation for conventional devices on file systems with the
ZONED flag was added. Fix this by factoring out the check for host
managed devices for !ZONED file systems into a separate helper and
then simplifying the rest of the code.
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/space-info.c')
0 files changed, 0 insertions, 0 deletions