From 6288d6eabc7505f42dda34a2c2962f91914be3a4 Mon Sep 17 00:00:00 2001 From: Liu Bo Date: Tue, 21 Feb 2017 12:12:58 -0800 Subject: [PATCH] Btrfs: use the correct type when creating cow dio extent 'BTRFS_ORDERED_REGULAR' was introduced for the cow case in patch 'Btrfs: specify a new ordered extent type for create_io_em', but it missed the directIO cow case. Signed-off-by: Liu Bo Signed-off-by: Chris Mason --- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index dae2734..c38391e 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7190,7 +7190,7 @@ static struct extent_map *btrfs_new_extent_direct(struct inode *inode, em = btrfs_create_dio_extent(inode, start, ins.offset, start, ins.objectid, ins.offset, ins.offset, - ins.offset, 0); + ins.offset, BTRFS_ORDERED_REGULAR); btrfs_dec_block_group_reservations(fs_info, ins.objectid); if (IS_ERR(em)) btrfs_free_reserved_extent(fs_info, ins.objectid, -- 2.7.4