summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-12-31 22:46:45 +0800
committerDavid Sterba <dsterba@suse.com>2016-02-18 10:26:12 +0100
commit02873e432518f84ad8f15d8911e79659ea38085f (patch)
tree8c1efbaa0ebef64c7343fef340d195ef316fc5aa /fs/btrfs/ctree.h
parent6e39dbe8b9e55280c396a19fb92e82f1b56f83d7 (diff)
downloadlinux-02873e432518f84ad8f15d8911e79659ea38085f.tar.gz
linux-02873e432518f84ad8f15d8911e79659ea38085f.tar.bz2
linux-02873e432518f84ad8f15d8911e79659ea38085f.zip
btrfs: reada: Use fs_info instead of root in __readahead_hook's argument
What __readahead_hook() need exactly is fs_info, no need to convert fs_info to root in caller and convert back in __readahead_hook() Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index bfe4a337fb4d..e557e05d2318 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -4525,8 +4525,8 @@ struct reada_control *btrfs_reada_add(struct btrfs_root *root,
struct btrfs_key *start, struct btrfs_key *end);
int btrfs_reada_wait(void *handle);
void btrfs_reada_detach(void *handle);
-int btree_readahead_hook(struct btrfs_root *root, struct extent_buffer *eb,
- u64 start, int err);
+int btree_readahead_hook(struct btrfs_fs_info *fs_info,
+ struct extent_buffer *eb, u64 start, int err);
static inline int is_fstree(u64 rootid)
{