Subject: [obsolete] afs-afs_alloc_inode-use-kmem_cache_zalloc.patch removed from -mm tree To: fabf@xxxxxxxxx,dhowells@xxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Fri, 21 Feb 2014 13:54:48 -0800 The patch titled Subject: afs: afs_alloc_inode: use kmem_cache_zalloc() has been removed from the -mm tree. Its filename was afs-afs_alloc_inode-use-kmem_cache_zalloc.patch This patch was dropped because it is obsolete ------------------------------------------------------ From: Fabian Frederick <fabf@xxxxxxxxx> Subject: afs: afs_alloc_inode: use kmem_cache_zalloc() This patch calls zalloc for explicit zero fill and removes all memset 0. Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/afs/super.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff -puN fs/afs/super.c~afs-afs_alloc_inode-use-kmem_cache_zalloc fs/afs/super.c --- a/fs/afs/super.c~afs-afs_alloc_inode-use-kmem_cache_zalloc +++ a/fs/afs/super.c @@ -460,7 +460,6 @@ static void afs_i_init_once(void *_vnode { struct afs_vnode *vnode = _vnode; - memset(vnode, 0, sizeof(*vnode)); inode_init_once(&vnode->vfs_inode); init_waitqueue_head(&vnode->update_waitq); mutex_init(&vnode->permits_lock); @@ -481,17 +480,12 @@ static struct inode *afs_alloc_inode(str { struct afs_vnode *vnode; - vnode = kmem_cache_alloc(afs_inode_cachep, GFP_KERNEL); + vnode = kmem_cache_zalloc(afs_inode_cachep, GFP_KERNEL); if (!vnode) return NULL; atomic_inc(&afs_count_active_inodes); - memset(&vnode->fid, 0, sizeof(vnode->fid)); - memset(&vnode->status, 0, sizeof(vnode->status)); - - vnode->volume = NULL; - vnode->update_cnt = 0; vnode->flags = 1 << AFS_VNODE_UNSET; vnode->cb_promised = false; _ Patches currently in -mm which might be from fabf@xxxxxxxxx are fs-cifs-cifsfsc-add-__init-to-cifs_init_inodecache.patch fs-udf-superc-add-__init-to-init_inodecache.patch sys_sysfs-add-config_sysfs_syscall.patch sys_sysfs-add-config_sysfs_syscall-fix.patch fs-efs-superc-add-__init-to-init_inodecache.patch fs-minix-inodec-add-__init-to-init_inodecache.patch befs-replace-kmalloc-memset-0-by-kzalloc.patch fs-ufs-superc-add-__init-to-init_inodecache.patch ufs-sb-mutex-merge-mutex_destroy.patch fs-adfs-superc-add-__init-to-init_inodecache.patch kernel-panicc-display-reason-at-end-pr_emerg.patch kernel-panicc-display-reason-at-end-pr_emerg-fix.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html