aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/ordered-data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index bbb1a3864686..8a5eff366596 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -537,7 +537,9 @@ void btrfs_remove_ordered_extent(struct inode *inode,
537 */ 537 */
538 if (RB_EMPTY_ROOT(&tree->tree) && 538 if (RB_EMPTY_ROOT(&tree->tree) &&
539 !mapping_tagged(inode->i_mapping, PAGECACHE_TAG_DIRTY)) { 539 !mapping_tagged(inode->i_mapping, PAGECACHE_TAG_DIRTY)) {
540 spin_lock(&root->fs_info->ordered_root_lock);
540 list_del_init(&BTRFS_I(inode)->ordered_operations); 541 list_del_init(&BTRFS_I(inode)->ordered_operations);
542 spin_unlock(&root->fs_info->ordered_root_lock);
541 } 543 }
542 544
543 if (!root->nr_ordered_extents) { 545 if (!root->nr_ordered_extents) {