From owner-svn-src-user@FreeBSD.ORG Sun Feb 24 16:08:38 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A5FA290D; Sun, 24 Feb 2013 16:08:38 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 823B2818; Sun, 24 Feb 2013 16:08:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1OG8cvr095071; Sun, 24 Feb 2013 16:08:38 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1OG8cwo095070; Sun, 24 Feb 2013 16:08:38 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201302241608.r1OG8cwo095070@svn.freebsd.org> From: Attilio Rao Date: Sun, 24 Feb 2013 16:08:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r247222 - user/attilio/vmc-playground/sys/vm X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 24 Feb 2013 16:08:38 -0000 Author: attilio Date: Sun Feb 24 16:08:37 2013 New Revision: 247222 URL: http://svnweb.freebsd.org/changeset/base/247222 Log: Fix an inverted check that was reporting indexes wrongly detected as wrapped. Sponsored by: EMC / Isilon storage divison Reported by: alc Modified: user/attilio/vmc-playground/sys/vm/vm_radix.c Modified: user/attilio/vmc-playground/sys/vm/vm_radix.c ============================================================================== --- user/attilio/vmc-playground/sys/vm/vm_radix.c Sun Feb 24 15:15:50 2013 (r247221) +++ user/attilio/vmc-playground/sys/vm/vm_radix.c Sun Feb 24 16:08:37 2013 (r247222) @@ -327,7 +327,7 @@ vm_radix_declev(vm_pindex_t *idx, boolea *idx = vm_radix_trimkey(*idx, ilev); *idx |= VM_RADIX_UNITLEVEL(ilev) - 1; *idx -= VM_RADIX_UNITLEVEL(ilev); - if (*idx < wrapidx) + if (*idx > wrapidx) return (1); return (0); }