]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: simplify btrfs_check_meta_write_pointer
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 7 Dec 2021 14:28:35 +0000 (06:28 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:25 +0000 (14:18 +0100)
commit6a37c88cb5d961d41e85e74cd1f28197397a6d50
tree03c20d74cb0d4a063b38f8a368293869f6901a89
parent65f07ff6130065b5f9cf55e79ddac6b304fe6242
btrfs: zoned: simplify btrfs_check_meta_write_pointer

btrfs_check_meta_write_pointer() will always be called with a NULL
'cache_ret' argument.

As there's no need to check if we have a valid block_group passed in
remove these checks.

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/zoned.c