projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5742f
)
btrfs: rename err to ret in calc_pct_ratio()
author
David Sterba
<dsterba@suse.com>
Fri, 30 May 2025 16:18:40 +0000
(18:18 +0200)
committer
David Sterba
<dsterba@suse.com>
Mon, 21 Jul 2025 21:53:28 +0000
(23:53 +0200)
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>
fs/btrfs/space-info.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/space-info.c
b/fs/btrfs/space-info.c
index 23685d6e8cbc4c42d27ab454dd0db6fce3a129b3..517916004f212b8272aba631b64ef58e709a731e 100644
(file)
--- 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: