path: root/ctree.h
diff options
authorQu Wenruo <>2018-09-05 13:58:34 +0800
committerDavid Sterba <>2018-10-31 18:24:14 +0100
commit65c3665811d0c23e764a673daa29e3a02866c379 (patch)
tree280c68baf94f4e79479ada397aa585c315b71ef5 /ctree.h
parent3e1d9cf02267b100e654f9f2756ca0ab7527d63b (diff)
btrfs-progs: Replace root parameter using fs_info for reada_for_search()
As the @root parameter is only used to get @fs_info, use fs_info directly instead. Reviewed-by: Nikolay Borisov <> Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/ctree.h b/ctree.h
index 2d45d93b..0a95352b 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2572,8 +2572,8 @@ btrfs_check_node(struct btrfs_root *root, struct btrfs_disk_key *parent_key,
enum btrfs_tree_block_status
btrfs_check_leaf(struct btrfs_root *root, struct btrfs_disk_key *parent_key,
struct extent_buffer *buf);
-void reada_for_search(struct btrfs_root *root, struct btrfs_path *path,
- int level, int slot, u64 objectid);
+void reada_for_search(struct btrfs_fs_info *fs_info, struct btrfs_path *path,
+ int level, int slot, u64 objectid);
struct extent_buffer *read_node_slot(struct btrfs_fs_info *fs_info,
struct extent_buffer *parent, int slot);
int btrfs_previous_item(struct btrfs_root *root,