From 47c694b0f4afa4fabf1a2013b9f9514a832898f7 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 30 Mar 2018 13:48:56 +0800 Subject: btrfs-progs: Unify btrfs_leaf_free_space() parameter with kernel Instead of struct btrfs_root, use struct btrfs_fs_info, since nodesize is now a per-fs setting, and with the need to pass a @root, caller don't need to wonder which root should be passed. Signed-off-by: Qu Wenruo Reviewed-by: Lu Fengqi Signed-off-by: David Sterba --- ctree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index fa861ba0..3d13720f 100644 --- a/ctree.h +++ b/ctree.h @@ -2662,7 +2662,8 @@ static inline int btrfs_next_item(struct btrfs_root *root, } int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path); -int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf); +int btrfs_leaf_free_space(struct btrfs_fs_info *fs_info, + struct extent_buffer *leaf); void btrfs_fixup_low_keys(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_disk_key *key, int level); int btrfs_set_item_key_safe(struct btrfs_root *root, struct btrfs_path *path, -- cgit v1.2.3