]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348790: Fix comparison signedness in arc_is_overflowing().
authorAlexander Motin <mav@FreeBSD.org>
Tue, 11 Jun 2019 14:32:32 +0000 (14:32 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 11 Jun 2019 14:32:32 +0000 (14:32 +0000)
commit67792f70b28409e17ff378b0d76b8c44d6c8010e
tree7857ecf48d75f92bf7cbbdcc3a603621f6108e62
parentc0c3999a0153eca17c2b826301df58202fbb0491
MFC r348790: 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.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c