summary refs log tree commit diff
path: root/fs/xfs
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 10:36:33 -0700
committerJiri Kosina <jkosina@suse.cz>2011-09-15 13:56:28 +0200
commit558feb0818374d657fbc1ea03776ee20f204b3a6 (patch)
tree9c063b50ef953405850422ca740dda3093ef6387 /fs/xfs
parent1ac4594d88f63ba1557cc1a30ec1f915ca55b7cb (diff)
downloadlinux-558feb0818374d657fbc1ea03776ee20f204b3a6.tar.gz
fs: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/kmem.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h
index f7c8f7a9ea6d..292eff198030 100644
--- a/fs/xfs/linux-2.6/kmem.h
+++ b/fs/xfs/linux-2.6/kmem.h
@@ -61,12 +61,7 @@ extern void  kmem_free(const void *);
 
 static inline void *kmem_zalloc_large(size_t size)
 {
-	void *ptr;
-
-	ptr = vmalloc(size);
-	if (ptr)
-		memset(ptr, 0, size);
-	return ptr;
+	return vzalloc(size);
 }
 static inline void kmem_free_large(void *ptr)
 {