lkml.org 
[lkml]   [2014]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH v2] afs: afs_alloc_inode: use kmem_cache_zalloc
On Thu, 20 Feb 2014 22:00:39 +0800 Fabian Frederick <fabf@skynet.be> wrote:

> This patch calls zalloc for explicit zero fill and removes all memset 0.
>

May as well fix the deceitful comment while we're in there.

--- a/fs/afs/super.c~afs-afs_alloc_inode-use-kmem_cache_zalloc-fix
+++ a/fs/afs/super.c
@@ -474,7 +474,7 @@ static void afs_i_init_once(void *_vnode
}

/*
- * allocate an AFS inode struct from our slab cache
+ * allocate an AFS inode struct
*/
static struct inode *afs_alloc_inode(struct super_block *sb)
{
This isn't the most useful comment in the kernel..


\
 
 \ /
  Last update: 2014-02-21 23:21    [W:0.084 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site