diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-02-21 15:12:58 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2017-02-22 18:55:03 -0500 |
commit | 6288d6eabc7505f42dda34a2c2962f91914be3a4 (patch) | |
tree | 27381135cc240cfe73507cd14154df983e65824e | |
parent | b1517622f2524f531113b12c27b9a0ea69c38983 (diff) |
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 <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index dae2734a725b..c38391e948d9 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, | |||
7190 | 7190 | ||
7191 | em = btrfs_create_dio_extent(inode, start, ins.offset, start, | 7191 | em = btrfs_create_dio_extent(inode, start, ins.offset, start, |
7192 | ins.objectid, ins.offset, ins.offset, | 7192 | ins.objectid, ins.offset, ins.offset, |
7193 | ins.offset, 0); | 7193 | ins.offset, BTRFS_ORDERED_REGULAR); |
7194 | btrfs_dec_block_group_reservations(fs_info, ins.objectid); | 7194 | btrfs_dec_block_group_reservations(fs_info, ins.objectid); |
7195 | if (IS_ERR(em)) | 7195 | if (IS_ERR(em)) |
7196 | btrfs_free_reserved_extent(fs_info, ins.objectid, | 7196 | btrfs_free_reserved_extent(fs_info, ins.objectid, |