diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ctree.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index e005d9b04616..b98f8604f4f6 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -1094,11 +1094,7 @@ __tree_mod_log_rewind(struct extent_buffer *eb, u64 time_seq, | |||
1094 | tm->generation); | 1094 | tm->generation); |
1095 | break; | 1095 | break; |
1096 | case MOD_LOG_KEY_ADD: | 1096 | case MOD_LOG_KEY_ADD: |
1097 | if (tm->slot != n - 1) { | 1097 | /* if a move operation is needed it's in the log */ |
1098 | o_dst = btrfs_node_key_ptr_offset(tm->slot); | ||
1099 | o_src = btrfs_node_key_ptr_offset(tm->slot + 1); | ||
1100 | memmove_extent_buffer(eb, o_dst, o_src, p_size); | ||
1101 | } | ||
1102 | n--; | 1098 | n--; |
1103 | break; | 1099 | break; |
1104 | case MOD_LOG_MOVE_KEYS: | 1100 | case MOD_LOG_MOVE_KEYS: |