svn commit: r243432 - projects/counters/sys/vm
Gleb Smirnoff
glebius at FreeBSD.org
Fri Nov 23 07:21:35 UTC 2012
Author: glebius
Date: Fri Nov 23 07:21:35 2012
New Revision: 243432
URL: http://svnweb.freebsd.org/changeset/base/243432
Log:
In keg_small_init() always set UMA_ZONE_HASH if zone was requested to
be UMA_ZONE_OFFPAGE, but !UMA_ZONE_VTOSLAB.
Modified:
projects/counters/sys/vm/uma_core.c
Modified: projects/counters/sys/vm/uma_core.c
==============================================================================
--- projects/counters/sys/vm/uma_core.c Fri Nov 23 07:13:35 2012 (r243431)
+++ projects/counters/sys/vm/uma_core.c Fri Nov 23 07:21:35 2012 (r243432)
@@ -1168,9 +1168,11 @@ keg_small_init(uma_keg_t keg)
UMA_SLAB_SIZE - keg->uk_ipers * keg->uk_rsize);
#endif
keg->uk_flags |= UMA_ZONE_OFFPAGE;
- if ((keg->uk_flags & UMA_ZONE_VTOSLAB) == 0)
- keg->uk_flags |= UMA_ZONE_HASH;
}
+
+ if ((keg->uk_flags & UMA_ZONE_OFFPAGE) &&
+ (keg->uk_flags & UMA_ZONE_VTOSLAB) == 0)
+ keg->uk_flags |= UMA_ZONE_HASH;
}
/*
More information about the svn-src-projects
mailing list