aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 609f3bbbd1ed..5132c9af888a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2676,7 +2676,8 @@ int btrfs_unlink_inode(struct btrfs_trans_handle *trans,
2676 2676
2677 ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len, 2677 ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len,
2678 dir, index); 2678 dir, index);
2679 BUG_ON(ret); 2679 if (ret == -ENOENT)
2680 ret = 0;
2680err: 2681err:
2681 btrfs_free_path(path); 2682 btrfs_free_path(path);
2682 if (ret) 2683 if (ret)