btrfs: merge nr_pages input and output parameter in compress_pages
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 18:04:07 +0000 (19:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 28 Feb 2017 13:26:35 +0000 (14:26 +0100)
commit4d3a800ebb1299944408f3b40b5b6b996477fba2
tree165a58136bd55ad94dec5154f6e03a47bf4763a9
parent38c31464089f639630b7c28ce933a4d60e135a02
btrfs: merge nr_pages input and output parameter in compress_pages

The parameter saying how many pages can be allocated at maximum can be
merged with the output page counter, to save some stack space.  The
compression implementation will sink the parameter to a local variable
so everything works as before.

The nr_pages variables can also be simply merged in compress_file_range
into one.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/inode.c
fs/btrfs/lzo.c
fs/btrfs/zlib.c