Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2016 10:19:07 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r301311 - stable/10/sys/fs/devfs
Message-ID:  <201606041019.u54AJ7s1094151@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606041019.u54AJ7s1094151>