Commit c06016a0 authored by void0red's avatar void0red Committed by David Sterba

btrfs: handle btrfs_del_item errors in __btrfs_update_delayed_inode

Even if the slot is already read out, we may still need to re-balance
the tree, thus it can cause error in that btrfs_del_item() call and we
need to handle it properly.
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarvoid0red <void0red@gmail.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2943868a
...@@ -1048,7 +1048,7 @@ static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, ...@@ -1048,7 +1048,7 @@ static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans,
* so there is only one iref. The case that several irefs are * so there is only one iref. The case that several irefs are
* in the same item doesn't exist. * in the same item doesn't exist.
*/ */
btrfs_del_item(trans, root, path); ret = btrfs_del_item(trans, root, path);
out: out:
btrfs_release_delayed_iref(node); btrfs_release_delayed_iref(node);
btrfs_release_path(path); btrfs_release_path(path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment