Displaying 1 result from an estimated 1 matches for "max_uncompress".
Did you mean:
max_uncompressed
2013 Feb 07
8
[RFC] Btrfs: Allow the compressed extent size limit to be modified v2
...eb 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -346,8 +346,8 @@ static noinline int compress_file_range(struct inode *inode,
unsigned long nr_pages_ret = 0;
unsigned long total_compressed = 0;
unsigned long total_in = 0;
- unsigned long max_compressed = 128 * 1024;
- unsigned long max_uncompressed = 128 * 1024;
+ unsigned long max_compressed = root->fs_info->max_compressed_extent_kb * 1024;
+ unsigned long max_uncompressed = root->fs_info->max_compressed_extent_kb * 1024;
int i;
int will_compress;
int compress_type = root->fs_info->compress_type;
@@ -361,7 +361,7 @@...