Date: Sat, 23 Jun 2012 14:09:53 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237481 - user/attilio/vmcontention/sys/vm Message-ID: <201206231409.q5NE9rEs045108@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Sat Jun 23 14:09:52 2012 New Revision: 237481 URL: http://svn.freebsd.org/changeset/base/237481 Log: Fix a bug in the logic, otherwise exhausted is set everytime that outidx == cnt. Reported by: pho Modified: user/attilio/vmcontention/sys/vm/vm_radix.c Modified: user/attilio/vmcontention/sys/vm/vm_radix.c ============================================================================== --- user/attilio/vmcontention/sys/vm/vm_radix.c Sat Jun 23 13:52:44 2012 (r237480) +++ user/attilio/vmcontention/sys/vm/vm_radix.c Sat Jun 23 14:09:52 2012 (r237481) @@ -776,7 +776,7 @@ vm_radix_lookupn(struct vm_radix *rtree, if (++outidx == cnt || (VM_RADIX_MAXVAL - start) == 0) { start++; - if (end == 0) + if ((VM_RADIX_MAXVAL - start) == 0 && end == 0) *exhausted = 1; goto out; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206231409.q5NE9rEs045108>