summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-14 19:45:05 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-28 14:26:36 +0100
commite5d74902362f1a06ea3674042d09f1af178c0a20 (patch)
tree18b3bf38ac7e1d72923e423156f5e1843317f695 /fs/btrfs/inode.c
parent069eac7850890acf0d3c21a6c8ca9f33ddb34a0d (diff)
downloadop-kernel-dev-e5d74902362f1a06ea3674042d09f1af178c0a20.zip
op-kernel-dev-e5d74902362f1a06ea3674042d09f1af178c0a20.tar.gz
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 11a4eea..0d932b9 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -510,8 +510,7 @@ again:
pages,
&nr_pages,
&total_in,
- &total_compressed,
- BTRFS_MAX_COMPRESSED);
+ &total_compressed);
if (!ret) {
unsigned long offset = total_compressed &
OpenPOWER on IntegriCloud