summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-19 10:46:34 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:19 +0200
commit477a30ba5f8dfb3fe951ed0352277bb26a616cb8 (patch)
treea07907e776139dbac6fe8216920fbd49b078d7ab /fs/btrfs/inode.c
parenta79a464d5675dbca49d6121425e8eb3571da29f7 (diff)
downloadlinux-477a30ba5f8dfb3fe951ed0352277bb26a616cb8.tar.gz
linux-477a30ba5f8dfb3fe951ed0352277bb26a616cb8.tar.bz2
linux-477a30ba5f8dfb3fe951ed0352277bb26a616cb8.zip
btrfs: Sink extent_tree arguments in try_release_extent_mapping
This function already gets the page from which the two extent trees are referenced. Simplify its signature by moving the code getting the trees inside 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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index d722a30b0b74..6853cd836a41 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8913,13 +8913,7 @@ btrfs_readpages(struct file *file, struct address_space *mapping,
}
static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags)
{
- struct extent_io_tree *tree;
- struct extent_map_tree *map;
- int ret;
-
- tree = &BTRFS_I(page->mapping->host)->io_tree;
- map = &BTRFS_I(page->mapping->host)->extent_tree;
- ret = try_release_extent_mapping(map, tree, page, gfp_flags);
+ int ret = try_release_extent_mapping(page, gfp_flags);
if (ret == 1) {
ClearPagePrivate(page);
set_page_private(page, 0);