btrfs: remove level argument from btrfs_set_block_flags
authorJosef Bacik <josef@toxicpanda.com>
Sat, 29 Apr 2023 20:07:11 +0000 (16:07 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:24 +0000 (13:59 +0200)
commit4aec05fa5a190d641664c2bca8ad270cf8190b8c
tree979a062dce52a1941ccd392ed141300a6b3c213b
parent54d687c13aef3194ea1490cf6d4b5016da1cf0bb
btrfs: remove level argument from btrfs_set_block_flags

We just pass in btrfs_header_level(eb) for the level, and we're passing
in the eb already, so simply get the level from the eb inside of
btrfs_set_block_flags.

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