mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
b272ae22ac
commit
71ad38b44e
4 changed files with 7 additions and 12 deletions
|
@ -978,9 +978,7 @@ static int btree_writepages(struct address_space *mapping,
|
|||
|
||||
static int btree_readpage(struct file *file, struct page *page)
|
||||
{
|
||||
struct extent_io_tree *tree;
|
||||
tree = &BTRFS_I(page->mapping->host)->io_tree;
|
||||
return extent_read_full_page(tree, page, btree_get_extent, 0);
|
||||
return extent_read_full_page(page, btree_get_extent, 0);
|
||||
}
|
||||
|
||||
static int btree_releasepage(struct page *page, gfp_t gfp_flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue