During unlink we remove any references to the inode from
the tree log. It can return -ENOENT and other errors,
and this changes the unlink code to deal with it.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len,
dir, index);
ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len,
dir, index);
+ if (ret == -ENOENT)
+ ret = 0;
err:
btrfs_free_path(path);
if (ret)
err:
btrfs_free_path(path);
if (ret)