diff options
| author | Denis Cheng <[email protected]> | 2007-10-17 06:26:19 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-10-17 15:42:48 +0000 |
| commit | 4975e45ff66845c9acc6c8619e80ef15eadf785e (patch) | |
| tree | b54586037ad8f902c8a8a3a33853b041c2c62207 /fs/file_table.c | |
| parent | fs/proc/mmu.c: headers butchery (diff) | |
| download | kernel-4975e45ff66845c9acc6c8619e80ef15eadf785e.tar.gz kernel-4975e45ff66845c9acc6c8619e80ef15eadf785e.zip | |
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]>
Diffstat (limited to 'fs/file_table.c')
| -rw-r--r-- | 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 287fdce7f767..ce3f39a4798a 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; |
