]> 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)
commitd9483602e08123307e28ea980862257b7e56ceb5
treefd39ede7261635ac2f47ece7139c668820cf9db0
parent8371d31fbd9e9ae5bf2130390f8d11f397a753e7
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