Commit f74670f7 authored by Anand Jain's avatar Anand Jain Committed by David Sterba

btrfs: use BTRFS_COMPRESS_NONE to specify no compression

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 1aceabf3
...@@ -541,7 +541,7 @@ static noinline void compress_file_range(struct inode *inode, ...@@ -541,7 +541,7 @@ static noinline void compress_file_range(struct inode *inode,
* to make an uncompressed inline extent. * to make an uncompressed inline extent.
*/ */
ret = cow_file_range_inline(root, inode, start, end, ret = cow_file_range_inline(root, inode, start, end,
0, 0, NULL); 0, BTRFS_COMPRESS_NONE, NULL);
} else { } else {
/* try making a compressed inline extent */ /* try making a compressed inline extent */
ret = cow_file_range_inline(root, inode, start, end, ret = cow_file_range_inline(root, inode, start, end,
...@@ -972,8 +972,8 @@ static noinline int cow_file_range(struct inode *inode, ...@@ -972,8 +972,8 @@ static noinline int cow_file_range(struct inode *inode,
if (start == 0) { if (start == 0) {
/* lets try to make an inline extent */ /* lets try to make an inline extent */
ret = cow_file_range_inline(root, inode, start, end, 0, 0, ret = cow_file_range_inline(root, inode, start, end, 0,
NULL); BTRFS_COMPRESS_NONE, NULL);
if (ret == 0) { if (ret == 0) {
extent_clear_unlock_delalloc(inode, start, end, extent_clear_unlock_delalloc(inode, start, end,
delalloc_end, NULL, delalloc_end, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment