btrfs: derive maximum output size in the compression implementation
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 18:45:05 +0000 (19:45 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 28 Feb 2017 13:26:36 +0000 (14:26 +0100)
commite5d74902362f1a06ea3674042d09f1af178c0a20
tree18b3bf38ac7e1d72923e423156f5e1843317f695
parent069eac7850890acf0d3c21a6c8ca9f33ddb34a0d
btrfs: derive maximum output size in the compression implementation

The value of max_out can be calculated from the parameters passed to the
compressors, which is number of pages and the page size, and we don't
have to needlessly pass it around.

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