]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b53bfcac0ee7b7f830c136ec0b6c9fa989d20bd
tree4971d80d5555e6d80022566a37abb3c476354a06
parent750368cb5c19952971f6fc0f85031fa95ba65081
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