OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87400c0
)
fs: use kmem_cache_zalloc instead
author
Denis Cheng
<crquan@gmail.com>
Wed, 17 Oct 2007 06:26:19 +0000
(23:26 -0700)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:48 +0000
(08:42 -0700)
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/file_table.c
patch
|
blob
|
history
diff --git
a/fs/file_table.c
b/fs/file_table.c
index
287fdce
..
ce3f39a
100644
(file)
--- 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_
z
alloc(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;