btrfs: rename err to ret2 in btrfs_setsize()

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:
David Sterba 2025-05-30 18:17:37 +02:00
parent df20be9f02
commit 8f38507068

View File

@ -5256,7 +5256,7 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr)
ret = btrfs_truncate(BTRFS_I(inode), newsize == oldsize);
if (ret && inode->i_nlink) {
int err;
int ret2;
/*
* Truncate failed, so fix up the in-memory size. We
@ -5264,9 +5264,9 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr)
* wait for disk_i_size to be stable and then update the
* in-memory size to match.
*/
err = btrfs_wait_ordered_range(BTRFS_I(inode), 0, (u64)-1);
if (err)
return err;
ret2 = btrfs_wait_ordered_range(BTRFS_I(inode), 0, (u64)-1);
if (ret2)
return ret2;
i_size_write(inode, BTRFS_I(inode)->disk_i_size);
}
}