aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 13:36:33 -0400
committerJiri Kosina <jkosina@suse.cz>2011-09-15 07:56:28 -0400
commit558feb0818374d657fbc1ea03776ee20f204b3a6 (patch)
tree9c063b50ef953405850422ca740dda3093ef6387 /fs/xfs
parent1ac4594d88f63ba1557cc1a30ec1f915ca55b7cb (diff)
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 f7c8f7a9ea6..292eff19803 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 *);
61 61
62static inline void *kmem_zalloc_large(size_t size) 62static inline void *kmem_zalloc_large(size_t size)
63{ 63{
64 void *ptr; 64 return vzalloc(size);
65
66 ptr = vmalloc(size);
67 if (ptr)
68 memset(ptr, 0, size);
69 return ptr;
70} 65}
71static inline void kmem_free_large(void *ptr) 66static inline void kmem_free_large(void *ptr)
72{ 67{