svn commit: r243039 - head/sys/fs/devfs

Konstantin Belousov kib at FreeBSD.org
Wed Nov 14 19:50:22 UTC 2012


Author: kib
Date: Wed Nov 14 19:50:21 2012
New Revision: 243039
URL: http://svnweb.freebsd.org/changeset/base/243039

Log:
  Remove M_USE_RESERVE from the devfs cdp allocator, which is one of two
  uses of M_USE_RESERVE in the kernel. This allocation is not special.
  
  Reviewed by:	alc
  Tested by:	pho
  MFC after:	2 weeks

Modified:
  head/sys/fs/devfs/devfs_devs.c

Modified: head/sys/fs/devfs/devfs_devs.c
==============================================================================
--- head/sys/fs/devfs/devfs_devs.c	Wed Nov 14 19:10:50 2012	(r243038)
+++ head/sys/fs/devfs/devfs_devs.c	Wed Nov 14 19:50:21 2012	(r243039)
@@ -121,7 +121,7 @@ devfs_alloc(int flags)
 	struct cdev *cdev;
 	struct timespec ts;
 
-	cdp = malloc(sizeof *cdp, M_CDEVP, M_USE_RESERVE | M_ZERO |
+	cdp = malloc(sizeof *cdp, M_CDEVP, M_ZERO |
 	    ((flags & MAKEDEV_NOWAIT) ? M_NOWAIT : M_WAITOK));
 	if (cdp == NULL)
 		return (NULL);


More information about the svn-src-all mailing list