Btrfs: do not set EXTENT_DIRTY along with EXTENT_DELALLOC
authorLiu Bo <liubo2009@cn.fujitsu.com>
Thu, 29 Sep 2011 07:55:28 +0000 (15:55 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 20 Oct 2011 16:10:45 +0000 (18:10 +0200)
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
fs/btrfs/extent_io.c

index 0ada0b700b448264d9140c033b40ef725574bd56..f284d4e5f447e10e4a2d662010d43fd7670be9df 100644 (file)
@@ -1107,7 +1107,7 @@ int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end,
                        struct extent_state **cached_state, gfp_t mask)
 {
        return set_extent_bit(tree, start, end,
-                             EXTENT_DELALLOC | EXTENT_DIRTY | EXTENT_UPTODATE,
+                             EXTENT_DELALLOC | EXTENT_UPTODATE,
                              0, NULL, cached_state, mask);
 }