diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index bcf0e48b1932..d1947af67bcd 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -3526,8 +3526,10 @@ next_slot: | |||
3526 | struct extent_map_tree *tree = &BTRFS_I(inode)->extent_tree; | 3526 | struct extent_map_tree *tree = &BTRFS_I(inode)->extent_tree; |
3527 | struct extent_map *em, *n; | 3527 | struct extent_map *em, *n; |
3528 | 3528 | ||
3529 | write_lock(&tree->lock); | ||
3529 | list_for_each_entry_safe(em, n, &tree->modified_extents, list) | 3530 | list_for_each_entry_safe(em, n, &tree->modified_extents, list) |
3530 | list_del_init(&em->list); | 3531 | list_del_init(&em->list); |
3532 | write_unlock(&tree->lock); | ||
3531 | } | 3533 | } |
3532 | 3534 | ||
3533 | if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) { | 3535 | if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) { |