diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 2e7d82ec5d18..adb169d739ce 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -608,9 +608,11 @@ nocow: | |||
608 | add_pending_csums(trans, inode, ordered_extent->file_offset, | 608 | add_pending_csums(trans, inode, ordered_extent->file_offset, |
609 | &ordered_extent->list); | 609 | &ordered_extent->list); |
610 | 610 | ||
611 | mutex_lock(&BTRFS_I(inode)->extent_mutex); | ||
611 | btrfs_ordered_update_i_size(inode, ordered_extent); | 612 | btrfs_ordered_update_i_size(inode, ordered_extent); |
612 | btrfs_update_inode(trans, root, inode); | 613 | btrfs_update_inode(trans, root, inode); |
613 | btrfs_remove_ordered_extent(inode, ordered_extent); | 614 | btrfs_remove_ordered_extent(inode, ordered_extent); |
615 | mutex_unlock(&BTRFS_I(inode)->extent_mutex); | ||
614 | 616 | ||
615 | /* once for us */ | 617 | /* once for us */ |
616 | btrfs_put_ordered_extent(ordered_extent); | 618 | btrfs_put_ordered_extent(ordered_extent); |