summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-19 03:46:36 -0400
committerDavid Sterba <dsterba@suse.com>2018-05-28 12:07:19 -0400
commit2a3ff0adc92069122a75c3e37271d7ab7ce0dc1c (patch)
tree5bbd1599a127a6c43fc585e6a3a09eb578b9abf2 /fs/btrfs/inode.c
parent29c68b2de98c23a2c97fa02c37ce9bf3c15076bd (diff)
btrfs: Remove redundant tree argument from extent_readpages
This function is called only from btrfs_readpage and is already passed the mapping. Simplify its signature by moving the code obtaining reference to the extent tree in the function. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 6853cd836a41..53ba8e8f1148 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8907,10 +8907,9 @@ static int
8907btrfs_readpages(struct file *file, struct address_space *mapping, 8907btrfs_readpages(struct file *file, struct address_space *mapping,
8908 struct list_head *pages, unsigned nr_pages) 8908 struct list_head *pages, unsigned nr_pages)
8909{ 8909{
8910 struct extent_io_tree *tree; 8910 return extent_readpages(mapping, pages, nr_pages);
8911 tree = &BTRFS_I(mapping->host)->io_tree;
8912 return extent_readpages(tree, mapping, pages, nr_pages);
8913} 8911}
8912
8914static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags) 8913static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags)
8915{ 8914{
8916 int ret = try_release_extent_mapping(page, gfp_flags); 8915 int ret = try_release_extent_mapping(page, gfp_flags);