Author: mjg
Date: Wed Sep  2 23:14:39 2015
New Revision: 287416
URL: https://svnweb.freebsd.org/changeset/base/287416

Log:
  fd: remove UMA_ZONE_ZINIT argument from Files zone
  
  Originally it was added in order to prevent trashing of objects with
  INVARIANTS enabled. The same effect is now provided with mere UMA_ZONE_NOFREE.
  
  This reverts r286921.
  
  Discussed with:               kib

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c        Wed Sep  2 23:09:01 2015        
(r287415)
+++ head/sys/kern/kern_descrip.c        Wed Sep  2 23:14:39 2015        
(r287416)
@@ -3833,7 +3833,7 @@ filelistinit(void *dummy)
 {
 
        file_zone = uma_zcreate("Files", sizeof(struct file), NULL, NULL,
-           NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE | UMA_ZONE_ZINIT);
+           NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
        filedesc0_zone = uma_zcreate("filedesc0", sizeof(struct filedesc0),
            NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
        mtx_init(&sigio_lock, "sigio lock", NULL, MTX_DEF);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to