mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02: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:
parent
a579ddca43
commit
986b6aa185
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user