]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: merge length 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)
commitba0b4df94b9dd2163f11b88e18777e66a778a3f2
treefd39ede7261635ac2f47ece7139c668820cf9db0
parent0f81061fb02f6186f1c9c516421707bf179059b9
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>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/inode.c
fs/btrfs/lzo.c
fs/btrfs/zlib.c