diff options
author | David Sterba | 2017-02-14 19:04:07 +0100 |
---|---|---|
committer | David Sterba | 2017-02-28 14:26:35 +0100 |
commit | 38c31464089f639630b7c28ce933a4d60e135a02 (patch) | |
tree | fd39ede7261635ac2f47ece7139c668820cf9db0 /fs/btrfs/inode.c | |
parent | 52f75f4fe74ce86376d68b30c94d5fb11cb4019e (diff) |
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.c | 2 |
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, |