diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 94db438494df..58075d711d24 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -3167,6 +3167,12 @@ next_slot: | |||
3167 | err = ret; | 3167 | err = ret; |
3168 | goto out_unlock; | 3168 | goto out_unlock; |
3169 | } | 3169 | } |
3170 | } else { | ||
3171 | struct extent_map_tree *tree = &BTRFS_I(inode)->extent_tree; | ||
3172 | struct extent_map *em, *n; | ||
3173 | |||
3174 | list_for_each_entry_safe(em, n, &tree->modified_extents, list) | ||
3175 | list_del_init(&em->list); | ||
3170 | } | 3176 | } |
3171 | 3177 | ||
3172 | if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) { | 3178 | if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) { |