btrfs: rename err to ret in calc_pct_ratio()

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:18:40 +02:00
parent 3b5742f379
commit 60a8bab08c

View File

@ -1973,13 +1973,13 @@ u64 btrfs_account_ro_block_groups_free_space(struct btrfs_space_info *sinfo)
static u64 calc_pct_ratio(u64 x, u64 y)
{
int err;
int ret;
if (!y)
return 0;
again:
err = check_mul_overflow(100, x, &x);
if (err)
ret = check_mul_overflow(100, x, &x);
if (ret)
goto lose_precision;
return div64_u64(x, y);
lose_precision: