diff options
author | attilio <attilio@FreeBSD.org> | 2013-02-24 16:08:37 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-02-24 16:08:37 +0000 |
commit | f6d331e8040eae45579f93dce65e9ec6d9a34561 (patch) | |
tree | ebc23da6d8a9d6d7a2d24ff9ba80b387d7d60784 /sys/vm/vm_radix.c | |
parent | 96feae12e9182127f02a48989f3f181218cf2948 (diff) | |
download | FreeBSD-src-f6d331e8040eae45579f93dce65e9ec6d9a34561.zip FreeBSD-src-f6d331e8040eae45579f93dce65e9ec6d9a34561.tar.gz |
Fix an inverted check that was reporting indexes wrongly detected
as wrapped.
Sponsored by: EMC / Isilon storage divison
Reported by: alc
Diffstat (limited to 'sys/vm/vm_radix.c')
-rw-r--r-- | sys/vm/vm_radix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_radix.c b/sys/vm/vm_radix.c index 2d28b5c..8a7fb01 100644 --- a/sys/vm/vm_radix.c +++ b/sys/vm/vm_radix.c @@ -327,7 +327,7 @@ vm_radix_declev(vm_pindex_t *idx, boolean_t *levels, uint16_t ilev) *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); } |