svn commit: r331873 - head/sys/vm

Gleb Smirnoff glebius at FreeBSD.org
Mon Apr 2 05:15:26 UTC 2018


Author: glebius
Date: Mon Apr  2 05:15:25 2018
New Revision: 331873
URL: https://svnweb.freebsd.org/changeset/base/331873

Log:
  Use UMA_SLAB_SPACE macro. No functional change here.

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Mon Apr  2 05:14:31 2018	(r331872)
+++ head/sys/vm/uma_core.c	Mon Apr  2 05:15:25 2018	(r331873)
@@ -1481,7 +1481,7 @@ keg_ctor(void *mem, int size, void *udata, int flags)
 	if (keg->uk_flags & UMA_ZONE_CACHESPREAD) {
 		keg_cachespread_init(keg);
 	} else {
-		if (keg->uk_size > (UMA_SLAB_SIZE - sizeof(struct uma_slab)))
+		if (keg->uk_size > UMA_SLAB_SPACE)
 			keg_large_init(keg);
 		else
 			keg_small_init(keg);


More information about the svn-src-all mailing list