Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4975e45ff66845c9acc6c8619e80ef15eadf785e Commit: 4975e45ff66845c9acc6c8619e80ef15eadf785e Parent: 87400c04753674f546c7779abf536d2a3b5e0b7e Author: Denis Cheng <[EMAIL PROTECTED]> AuthorDate: Tue Oct 16 23:26:19 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Wed Oct 17 08:42:48 2007 -0700
fs: use kmem_cache_zalloc instead Signed-off-by: Denis Cheng <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- fs/file_table.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/fs/file_table.c b/fs/file_table.c index 287fdce..ce3f39a 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -102,12 +102,11 @@ struct file *get_empty_filp(void) goto over; } - f = kmem_cache_alloc(filp_cachep, GFP_KERNEL); + f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); if (f == NULL) goto fail; percpu_counter_inc(&nr_files); - memset(f, 0, sizeof(*f)); if (security_file_alloc(f)) goto fail_sec; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html