btrfs: use BTRFS_COMPRESS_NONE to specify no compression
authorAnand Jain <anand.jain@oracle.com>
Tue, 6 Dec 2016 04:43:07 +0000 (12:43 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:49 +0000 (15:50 +0100)
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c

index ed9e049..c2fc535 100644 (file)
@@ -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,