diff options
author | Joe Perches <joe@perches.com> | 2011-05-28 10:36:33 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 13:56:28 +0200 |
commit | 558feb0818374d657fbc1ea03776ee20f204b3a6 (patch) | |
tree | 9c063b50ef953405850422ca740dda3093ef6387 /fs/xfs | |
parent | 1ac4594d88f63ba1557cc1a30ec1f915ca55b7cb (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.h | 7 |
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) { |