diff options
author | David Sterba <dsterba@suse.com> | 2017-03-02 19:43:30 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:25 +0200 |
commit | d48d71aa9977473b6515bb48933617a06cdc7be9 (patch) | |
tree | 79cf9b4768feddc6b19b26c30bb89831ec4b8951 /fs/btrfs/disk-io.c | |
parent | 7ef70b4d9987a78d39c4e40a02093493333e5408 (diff) | |
download | linux-stable-d48d71aa9977473b6515bb48933617a06cdc7be9.tar.gz linux-stable-d48d71aa9977473b6515bb48933617a06cdc7be9.tar.bz2 linux-stable-d48d71aa9977473b6515bb48933617a06cdc7be9.zip |
btrfs: remove redundant parameter from btree_readahead_hook
We can read fs_info from eb.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 12eba54877c2..a9314fe494c9 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -762,7 +762,7 @@ static int btree_readpage_end_io_hook(struct btrfs_io_bio *io_bio, err: if (reads_done && test_and_clear_bit(EXTENT_BUFFER_READAHEAD, &eb->bflags)) - btree_readahead_hook(fs_info, eb, ret); + btree_readahead_hook(eb, ret); if (ret) { /* @@ -787,7 +787,7 @@ static int btree_io_failed_hook(struct page *page, int failed_mirror) eb->read_mirror = failed_mirror; atomic_dec(&eb->io_pages); if (test_and_clear_bit(EXTENT_BUFFER_READAHEAD, &eb->bflags)) - btree_readahead_hook(eb->fs_info, eb, -EIO); + btree_readahead_hook(eb, -EIO); return -EIO; /* we fixed nothing */ } |