Skip to content

Commit 6288d6e

Browse files
Liu Bomasoncl
authored andcommitted
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 <[email protected]> Signed-off-by: Chris Mason <[email protected]>
1 parent b151762 commit 6288d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7190,7 +7190,7 @@ static struct extent_map *btrfs_new_extent_direct(struct inode *inode,
71907190

71917191
em = btrfs_create_dio_extent(inode, start, ins.offset, start,
71927192
ins.objectid, ins.offset, ins.offset,
7193-
ins.offset, 0);
7193+
ins.offset, BTRFS_ORDERED_REGULAR);
71947194
btrfs_dec_block_group_reservations(fs_info, ins.objectid);
71957195
if (IS_ERR(em))
71967196
btrfs_free_reserved_extent(fs_info, ins.objectid,

0 commit comments

Comments
 (0)