path: root/ctree.h
diff options
authorQu Wenruo <>2018-03-30 13:48:56 +0800
committerDavid Sterba <>2018-04-24 13:00:11 +0200
commit47c694b0f4afa4fabf1a2013b9f9514a832898f7 (patch)
tree6c1ab83390cae8dfbc7dc1f9d19e851911027028 /ctree.h
parentf96ca97fb451801d899650a4d03f6a96fa8c59fb (diff)
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 <>
Diffstat (limited to 'ctree.h')
1 files changed, 2 insertions, 1 deletions
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,