mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-15 00:04:23 +08:00
btrfs-progs: handle btfs_del_items() failure in truncate_free_ino_items()
Do proper error handling like in the rest of the function. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
76c49eb686
commit
bb12921b8a
@ -542,7 +542,11 @@ int truncate_free_ino_items(struct btrfs_root *root)
|
||||
}
|
||||
|
||||
ret = btrfs_del_item(trans, root, &path);
|
||||
BUG_ON(ret);
|
||||
if (ret < 0) {
|
||||
btrfs_abort_transaction(trans, ret);
|
||||
btrfs_release_path(&path);
|
||||
goto out;
|
||||
}
|
||||
btrfs_release_path(&path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user