aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/inode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a7058fca3aab..401dfb2a94e8 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -427,6 +427,7 @@ again:
427 &BTRFS_I(inode)->io_tree, 427 &BTRFS_I(inode)->io_tree,
428 start, end, NULL, 428 start, end, NULL,
429 EXTENT_CLEAR_UNLOCK_PAGE | EXTENT_CLEAR_DIRTY | 429 EXTENT_CLEAR_UNLOCK_PAGE | EXTENT_CLEAR_DIRTY |
430 EXTENT_CLEAR_DELALLOC |
430 EXTENT_SET_WRITEBACK | EXTENT_END_WRITEBACK); 431 EXTENT_SET_WRITEBACK | EXTENT_END_WRITEBACK);
431 ret = 0; 432 ret = 0;
432 goto free_pages_out; 433 goto free_pages_out;
@@ -644,6 +645,7 @@ static noinline int submit_compressed_extents(struct inode *inode,
644 async_extent->ram_size - 1, 645 async_extent->ram_size - 1,
645 NULL, EXTENT_CLEAR_UNLOCK_PAGE | 646 NULL, EXTENT_CLEAR_UNLOCK_PAGE |
646 EXTENT_CLEAR_UNLOCK | 647 EXTENT_CLEAR_UNLOCK |
648 EXTENT_CLEAR_DELALLOC |
647 EXTENT_CLEAR_DIRTY | EXTENT_SET_WRITEBACK); 649 EXTENT_CLEAR_DIRTY | EXTENT_SET_WRITEBACK);
648 650
649 ret = btrfs_submit_compressed_write(inode, 651 ret = btrfs_submit_compressed_write(inode,
@@ -877,8 +879,8 @@ static int cow_file_range_async(struct inode *inode, struct page *locked_page,
877 u64 cur_end; 879 u64 cur_end;
878 int limit = 10 * 1024 * 1042; 880 int limit = 10 * 1024 * 1042;
879 881
880 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED | 882 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED,
881 EXTENT_DELALLOC, 1, 0, NULL, GFP_NOFS); 883 1, 0, NULL, GFP_NOFS);
882 while (start < end) { 884 while (start < end) {
883 async_cow = kmalloc(sizeof(*async_cow), GFP_NOFS); 885 async_cow = kmalloc(sizeof(*async_cow), GFP_NOFS);
884 async_cow->inode = inode; 886 async_cow->inode = inode;