| To: | Jiri Kosina <trivial@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 41/49] fs/xfs: Use vzalloc |
| From: | Joe Perches <joe@xxxxxxxxxxx> |
| Date: | Thu, 4 Nov 2010 20:08:05 -0700 |
| Cc: | Alex Elder <aelder@xxxxxxx>, xfs-masters@xxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <alpine.DEB.2.00.1011031108260.11625@xxxxxxxxxxx> |
| In-reply-to: | <cover.1288925424.git.joe@xxxxxxxxxxx> |
| References: | <alpine.DEB.2.00.1011031108260.11625@xxxxxxxxxxx> |
| References: | <cover.1288925424.git.joe@xxxxxxxxxxx> |
Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
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 f7c8f7a..292eff1 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)
{
--
1.7.3.1.g432b3.dirty
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 00/49] Use vzalloc not vmalloc/kmemset, Joe Perches |
|---|---|
| Next by Date: | [PATCH v2 1/9] xfsrestore: turn off NODECHK, wkendall |
| Previous by Thread: | [PATCH 00/49] Use vzalloc not vmalloc/kmemset, Joe Perches |
| Next by Thread: | Re: [PATCH 41/49] fs/xfs: Use vzalloc, Alex Elder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |