diff options
author | David Sterba <dsterba@suse.com> | 2020-02-05 21:09:35 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-03-23 19:01:35 +0300 |
commit | 71ad38b44eaa758c70c34ca97a5c3848d6b67e03 (patch) | |
tree | ead74998ab84a98ae8015638d2e140ead1ca4eba /fs/btrfs/extent_io.c | |
parent | b272ae22acd2ca688bbf9d94eea4b1da61fdc697 (diff) | |
download | linux-71ad38b44eaa758c70c34ca97a5c3848d6b67e03.tar.xz |
btrfs: sink argument tree to extent_read_full_page
The tree pointer can be safely read from the page's inode, use it and
drop the redundant argument.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 35accc9b8ced..7e22f7de733f 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3361,15 +3361,14 @@ static int __extent_read_full_page(struct extent_io_tree *tree, return ret; } -int extent_read_full_page(struct extent_io_tree *tree, struct page *page, - get_extent_t *get_extent, int mirror_num) +int extent_read_full_page(struct page *page, get_extent_t *get_extent, + int mirror_num) { struct bio *bio = NULL; unsigned long bio_flags = 0; + struct extent_io_tree *tree = &BTRFS_I(page->mapping->host)->io_tree; int ret; - ASSERT(tree == &BTRFS_I(page->mapping->host)->io_tree); - ret = __extent_read_full_page(tree, page, get_extent, &bio, mirror_num, &bio_flags, 0); if (bio) |