aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.com> 2017-02-14 19:04:07 +0100
committerGravatar David Sterba <dsterba@suse.com> 2017-02-28 14:26:35 +0100
commit38c31464089f639630b7c28ce933a4d60e135a02 (patch)
treefd39ede7261635ac2f47ece7139c668820cf9db0 /fs/btrfs/inode.c
parentbtrfs: constify name of subvolume in creation helpers (diff)
downloadlinux-38c31464089f639630b7c28ce933a4d60e135a02.tar.gz
linux-38c31464089f639630b7c28ce933a4d60e135a02.tar.bz2
linux-38c31464089f639630b7c28ce933a4d60e135a02.zip
btrfs: merge length input and output parameter in compress_pages
The length parameter is basically duplicated for input and output in the top level caller of the compress_pages chain. We can simply use one variable for that and reduce stack consumption. The compression implementation will sink the parameter to a local variable so everything works as before. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 596e5cb4bfa2..8b9eac33d431 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -517,7 +517,7 @@ again:
redirty = 1;
ret = btrfs_compress_pages(compress_type,
inode->i_mapping, start,
- total_compressed, pages,
+ pages,
nr_pages, &nr_pages_ret,
&total_in,
&total_compressed,