svn commit: r301311 - stable/10/sys/fs/devfs

Konstantin Belousov kib at FreeBSD.org
Sat Jun 4 10:19:08 UTC 2016


Author: kib
Date: Sat Jun  4 10:19:07 2016
New Revision: 301311
URL: https://svnweb.freebsd.org/changeset/base/301311

Log:
  MFC r300365:
  Remove zero assignments in the cdev allocator.  cdp memory is
  requested with M_ZERO.

Modified:
  stable/10/sys/fs/devfs/devfs_devs.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/devfs/devfs_devs.c
==============================================================================
--- stable/10/sys/fs/devfs/devfs_devs.c	Sat Jun  4 10:16:58 2016	(r301310)
+++ stable/10/sys/fs/devfs/devfs_devs.c	Sat Jun  4 10:19:07 2016	(r301311)
@@ -127,16 +127,11 @@ devfs_alloc(int flags)
 		return (NULL);
 
 	cdp->cdp_dirents = &cdp->cdp_dirent0;
-	cdp->cdp_dirent0 = NULL;
-	cdp->cdp_maxdirent = 0;
-	cdp->cdp_inode = 0;
 
 	cdev = &cdp->cdp_c;
-
 	LIST_INIT(&cdev->si_children);
 	vfs_timestamp(&ts);
 	cdev->si_atime = cdev->si_mtime = cdev->si_ctime = ts;
-	cdev->si_cred = NULL;
 
 	return (cdev);
 }


More information about the svn-src-stable mailing list