From owner-svn-src-user@FreeBSD.ORG Sat Jun 23 14:09:53 2012 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A88A106571A; Sat, 23 Jun 2012 14:09:53 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 55EDB8FC1E; Sat, 23 Jun 2012 14:09:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5NE9rOT045110; Sat, 23 Jun 2012 14:09:53 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5NE9rEs045108; Sat, 23 Jun 2012 14:09:53 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201206231409.q5NE9rEs045108@svn.freebsd.org> From: Attilio Rao Date: Sat, 23 Jun 2012 14:09:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237481 - user/attilio/vmcontention/sys/vm X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 14:09:53 -0000 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; }