]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix comparison signedness in arc_is_overflowing().
authormav <mav@FreeBSD.org>
Fri, 7 Jun 2019 20:59:24 +0000 (20:59 +0000)
committermav <mav@FreeBSD.org>
Fri, 7 Jun 2019 20:59:24 +0000 (20:59 +0000)
commit7bd3ba93f748836f7101df6a860361378f42f538
tree2da45f28146dcd1efe0a9c36db1fa8eabb2912cc
parent83ee51bf028e778aa584f79403fc952ec15e2811
Fix comparison signedness in arc_is_overflowing().

When ARC size is very small, aggsum_lower_bound(&arc_size) may return
negative values, that due to unsigned comparison caused delays, waiting
for arc_adjust() to "fix" it by calling aggsum_value(&arc_size).  Use
of signed comparison there fixes the problem.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c