btrfs: add set/get accessors for root_item::drop_level
authorDavid Sterba <dsterba@suse.com>
Tue, 15 Sep 2020 19:44:52 +0000 (21:44 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:52 +0000 (15:53 +0100)
commitc842268458d904c04f08259cc7ecee3870fa2746
tree4971d80d5555e6d80022566a37abb3c476354a06
parentf944d2cb209674411280737d5fb660e98b8a8314
btrfs: add set/get accessors for root_item::drop_level

The drop_level member is used directly unlike all the other int types in
root_item. Add the definition and use it everywhere. The type is u8 so
there's no conversion necessary and the helpers are properly inlined,
this is for consistency.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/tree-checker.c