mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 11:11:22 -04:00
btrfs: rename err to ret2 in btrfs_truncate_inode_items()
Unify naming of return value to the preferred way. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -720,13 +720,12 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
|
||||
}
|
||||
out:
|
||||
if (ret >= 0 && pending_del_nr) {
|
||||
int err;
|
||||
int ret2;
|
||||
|
||||
err = btrfs_del_items(trans, root, path, pending_del_slot,
|
||||
pending_del_nr);
|
||||
if (err) {
|
||||
btrfs_abort_transaction(trans, err);
|
||||
ret = err;
|
||||
ret2 = btrfs_del_items(trans, root, path, pending_del_slot, pending_del_nr);
|
||||
if (ret2) {
|
||||
btrfs_abort_transaction(trans, ret2);
|
||||
ret = ret2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user