mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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: Qu Wenruo <wqu@suse.com> Signed-off-by: void0red <void0red@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -1048,7 +1048,7 @@ again:
|
|||||||
* 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);
|
||||||
|
Reference in New Issue
Block a user