summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-12-08 15:55:58 +0200
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:16 +0100
commit5e3ee23648a20dfaf72eeb88f884aae25ea7d8fb (patch)
tree24021d1ecf2a66271bc53873f99f6b00fc98b06d /fs/btrfs/inode.c
parent3e798068a8ef400049cc3bb4f01f9701a29e1f86 (diff)
downloadlinux-5e3ee23648a20dfaf72eeb88f884aae25ea7d8fb.tar.bz2
btrfs: sink extent_write_locked_range tree parameter
This function is called only from submit_compressed_extents and the io tree being passed is always that of the inode. But we are also passing the inode, so just move getting the io tree pointer in extent_write_locked_range to simplify the signature. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 9ad8c9321c8f..8a7da59292b7 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -770,8 +770,8 @@ retry:
* all those pages down to the drive.
*/
if (!page_started && !ret)
- extent_write_locked_range(io_tree,
- inode, async_extent->start,
+ extent_write_locked_range(inode,
+ async_extent->start,
async_extent->start +
async_extent->ram_size - 1,
WB_SYNC_ALL);