svn commit: r300365 - head/sys/fs/devfs
Konstantin Belousov
kib at FreeBSD.org
Sat May 21 09:55:34 UTC 2016
Author: kib
Date: Sat May 21 09:55:32 2016
New Revision: 300365
URL: https://svnweb.freebsd.org/changeset/base/300365
Log:
Remove zero assignments in the cdev allocator. cdp memory is
requested with M_ZERO.
Sponsored by: The FreeBSD Foundation
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 Sat May 21 09:49:35 2016 (r300364)
+++ head/sys/fs/devfs/devfs_devs.c Sat May 21 09:55:32 2016 (r300365)
@@ -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-head
mailing list