diff options
author | David Sterba <dsterba@suse.com> | 2016-11-08 13:50:03 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:16 +0100 |
commit | fc2e901f26859a87b7cd5c49015552805b7a00e0 (patch) | |
tree | 7401705b8233db65d76e60e6b71a424bab3fb32d /fs/btrfs/reada.c | |
parent | bcdc51b2043a363b67d97bc99799e505d31391a9 (diff) | |
download | blackbird-op-linux-fc2e901f26859a87b7cd5c49015552805b7a00e0.tar.gz blackbird-op-linux-fc2e901f26859a87b7cd5c49015552805b7a00e0.zip |
btrfs: reada, sink start parameter to btree_readahead_hook
Originally, the eb and start were passed separately in case eb is NULL.
Since the readahead has been refactored in 4.6, this is not true anymore
and we can get rid of the parameter.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reada.c')
-rw-r--r-- | fs/btrfs/reada.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c index 9c7a0424af1b..e910bd9b1588 100644 --- a/fs/btrfs/reada.c +++ b/fs/btrfs/reada.c @@ -209,12 +209,8 @@ cleanup: return; } -/* - * start is passed separately in case eb in NULL, which may be the case with - * failed I/O - */ int btree_readahead_hook(struct btrfs_fs_info *fs_info, - struct extent_buffer *eb, u64 start, int err) + struct extent_buffer *eb, int err) { int ret = 0; struct reada_extent *re; @@ -222,7 +218,7 @@ int btree_readahead_hook(struct btrfs_fs_info *fs_info, /* find extent */ spin_lock(&fs_info->reada_lock); re = radix_tree_lookup(&fs_info->reada_tree, - start >> PAGE_SHIFT); + eb->start >> PAGE_SHIFT); if (re) re->refcnt++; spin_unlock(&fs_info->reada_lock); |