diff options
Diffstat (limited to 'check')
-rw-r--r-- | check/mode-lowmem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c index bfe45aba..5e1d6b2a 100644 --- a/check/mode-lowmem.c +++ b/check/mode-lowmem.c @@ -635,6 +635,10 @@ int repair_ternary_lowmem(struct btrfs_root *root, u64 dir_ino, u64 ino, goto out; } if (stage == 1) { + ret = btrfs_unlink(trans, root, ino, dir_ino, index, name, + name_len, 0); + if (ret) + goto out; ret = btrfs_add_link(trans, root, ino, dir_ino, name, name_len, filetype, &index, 1, 1); goto out; |