summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-19 10:46:38 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:20 +0200
commit8ae225a8a4f9054ffc6566e14aaf05dfc559743e (patch)
tree5faf56d3773a22b8a8e53e996e483ab67d7a6776 /fs/btrfs/inode.c
parent81f1d39035dfc58b265b3ad68e2dcbb61b7d8263 (diff)
downloadlinux-stable-8ae225a8a4f9054ffc6566e14aaf05dfc559743e.tar.gz
linux-stable-8ae225a8a4f9054ffc6566e14aaf05dfc559743e.tar.bz2
linux-stable-8ae225a8a4f9054ffc6566e14aaf05dfc559743e.zip
btrfs: Remove tree argument from extent_writepages
It can be directly referenced from the passed address_space so do that. 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, 1 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 0aadf17c528f..775249f03dd3 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8897,10 +8897,7 @@ static int btrfs_writepage(struct page *page, struct writeback_control *wbc)
static int btrfs_writepages(struct address_space *mapping,
struct writeback_control *wbc)
{
- struct extent_io_tree *tree;
-
- tree = &BTRFS_I(mapping->host)->io_tree;
- return extent_writepages(tree, mapping, wbc);
+ return extent_writepages(mapping, wbc);
}
static int