summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2016-12-06 12:43:07 +0800
committerDavid Sterba <dsterba@suse.com>2017-02-14 15:50:49 +0100
commitf74670f7132b002b5ee41edbc8d323500bf490b2 (patch)
tree5a73abc269d21e9e994e32559a2f81dcb98c354e /fs
parent1aceabf362dc8c54ec7790de7f95d75c1ecb9678 (diff)
downloadlinux-stable-f74670f7132b002b5ee41edbc8d323500bf490b2.tar.gz
linux-stable-f74670f7132b002b5ee41edbc8d323500bf490b2.tar.bz2
linux-stable-f74670f7132b002b5ee41edbc8d323500bf490b2.zip
btrfs: use BTRFS_COMPRESS_NONE to specify no compression
Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index ed9e04990bec..c2fc5357166a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -541,7 +541,7 @@ cont:
* to make an uncompressed inline extent.
*/
ret = cow_file_range_inline(root, inode, start, end,
- 0, 0, NULL);
+ 0, BTRFS_COMPRESS_NONE, NULL);
} else {
/* try making a compressed inline extent */
ret = cow_file_range_inline(root, inode, start, end,
@@ -972,8 +972,8 @@ static noinline int cow_file_range(struct inode *inode,
if (start == 0) {
/* lets try to make an inline extent */
- ret = cow_file_range_inline(root, inode, start, end, 0, 0,
- NULL);
+ ret = cow_file_range_inline(root, inode, start, end, 0,
+ BTRFS_COMPRESS_NONE, NULL);
if (ret == 0) {
extent_clear_unlock_delalloc(inode, start, end,
delalloc_end, NULL,