mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Fix multiplication converted to larger type
This fixes the instances of the "Multiplication result converted to larger type" alert that codeQL scanning found. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Andrew Innes <andrew.c12@gmail.com> Closes #14094
This commit is contained in:
+1
-1
@@ -5136,7 +5136,7 @@ arc_adapt(int bytes, arc_state_t *state)
|
||||
if (!zfs_arc_p_dampener_disable)
|
||||
mult = MIN(mult, 10); /* avoid wild arc_p adjustment */
|
||||
|
||||
arc_p = MIN(arc_c - arc_p_min, arc_p + bytes * mult);
|
||||
arc_p = MIN(arc_c - arc_p_min, arc_p + (uint64_t)bytes * mult);
|
||||
} else if (state == arc_mfu_ghost) {
|
||||
uint64_t delta;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user