summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2011-08-03 14:57:11 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-08-03 14:57:11 -0400
commitdb9481c0476c6475d058ac7ecebb5a822b43cc99 (patch)
treed3115cab19ab99912618428d9f9e76bbf3572857 /fs
parented8f37370d83e695c0a4fa5d5fc7a83ecb947526 (diff)
ext4: use kzalloc in ext4_kzalloc()
Commit 9933fc0i (ext4: introduce ext4_kvmalloc(), ext4_kzalloc(), and ext4_kvfree()) intruduced wrappers around k*alloc/vmalloc but introduced a typo for ext4_kzalloc() by not using kzalloc() but kmalloc(). Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index e2d88baf91d3..4687fea0c00f 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -124,7 +124,7 @@ void *ext4_kvzalloc(size_t size, gfp_t flags)
{
void *ret;
- ret = kmalloc(size, flags);
+ ret = kzalloc(size, flags);
if (!ret)
ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
return ret;