Skip to content
Commit 4d3a800e authored by David Sterba's avatar David Sterba
Browse files

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: default avatarDavid Sterba <dsterba@suse.com>
parent 38c31464
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment