diff options
-rw-r--r-- | fs/btrfs/extent_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index ed88f5ee4bea..9759911dd34e 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -289,7 +289,8 @@ out: | |||
289 | void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em) | 289 | void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em) |
290 | { | 290 | { |
291 | clear_bit(EXTENT_FLAG_LOGGING, &em->flags); | 291 | clear_bit(EXTENT_FLAG_LOGGING, &em->flags); |
292 | try_merge_map(tree, em); | 292 | if (em->in_tree) |
293 | try_merge_map(tree, em); | ||
293 | } | 294 | } |
294 | 295 | ||
295 | /** | 296 | /** |