From: David Sterba Date: Fri, 30 May 2025 16:18:40 +0000 (+0200) Subject: btrfs: rename err to ret in calc_pct_ratio() X-Git-Tag: block-6.17-20250808~77^2~153 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=60a8bab08c5883772a30851468487d04d7e621a6;p=linux-block.git btrfs: rename err to ret in calc_pct_ratio() Unify naming of return value to the preferred way. Reviewed-by: Anand Jain Signed-off-by: David Sterba --- diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index 23685d6e8cbc..517916004f21 100644 --- a/fs/btrfs/space-info.c +++ b/fs/btrfs/space-info.c @@ -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: