Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6418c961 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: deal with errors from updating the tree log



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: default avatarChris Mason <chris.mason@oracle.com>
parent 4260f7c7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2676,7 +2676,8 @@ int btrfs_unlink_inode(struct btrfs_trans_handle *trans,

	ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len,
					   dir, index);
	BUG_ON(ret);
	if (ret == -ENOENT)
		ret = 0;
err:
	btrfs_free_path(path);
	if (ret)