[PATCH 06/29] btrfs: btrfs_setsize rename err to ret2

Anand Jain
2024-03-19T14:56:56Z

Simple renaming of the local variable err to ret2.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
fs/btrfs/inode.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 27183225ac54..952c92e6dfcf 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -5077,7 +5077,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
@@ -5085,9 +5085,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(inode, 0, (u64)-1);
- if (err)
- return err;
+ ret2 = btrfs_wait_ordered_range(inode, 0, (u64)-1);
+ if (ret2)
+ return ret2;
i_size_write(inode, BTRFS_I(inode)->disk_i_size);
}
}
--
2.38.1