Skip to content

Commit c06016a

Browse files
void0redkdave
authored andcommitted
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 <[email protected]> Signed-off-by: void0red <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 2943868 commit c06016a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/delayed-inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans,
10481048
* so there is only one iref. The case that several irefs are
10491049
* in the same item doesn't exist.
10501050
*/
1051-
btrfs_del_item(trans, root, path);
1051+
ret = btrfs_del_item(trans, root, path);
10521052
out:
10531053
btrfs_release_delayed_iref(node);
10541054
btrfs_release_path(path);

0 commit comments

Comments
 (0)