From: Alex Elder <aelder@sgi.com>
To: Joe Perches <joe@perches.com>
Cc: codalist@TELEMANN.coda.cs.cmu.edu,
Jan Harkes <jaharkes@cs.cmu.edu>,
Jiri Kosina <trivial@kernel.org>,
coda@cs.cmu.edu, linux-kernel@vger.kernel.org,
reiserfs-devel@vger.kernel.org, xfs-masters@oss.sgi.com,
xfs@oss.sgi.com
Subject: Re: [TRIVIAL PATCH next 13/15] fs: Convert vmalloc/memset to vzalloc
Date: Tue, 31 May 2011 13:20:39 -0500 [thread overview]
Message-ID: <1306866039.2865.26.camel@doink> (raw)
In-Reply-To: <4561db676a209fff984a75ade2f552ddbfabb95b.1306603968.git.joe@perches.com>
On Sat, 2011-05-28 at 10:36 -0700, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> fs/coda/coda_linux.h | 5 ++---
> fs/reiserfs/journal.c | 9 +++------
> fs/reiserfs/resize.c | 4 +---
> fs/xfs/linux-2.6/kmem.h | 7 +------
> 4 files changed, 7 insertions(+), 18 deletions(-)
>
Acked-by: Alex Elder <aelder@sgi.com>
. . .
> 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)
> {
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
WARNING: multiple messages have this Message-ID (diff)
From: Alex Elder <aelder@sgi.com>
To: Joe Perches <joe@perches.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>,
coda@cs.cmu.edu, Jiri Kosina <trivial@kernel.org>,
xfs-masters@oss.sgi.com, codalist@coda.cs.cmu.edu,
linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org,
xfs@oss.sgi.com
Subject: Re: [TRIVIAL PATCH next 13/15] fs: Convert vmalloc/memset to vzalloc
Date: Tue, 31 May 2011 13:20:39 -0500 [thread overview]
Message-ID: <1306866039.2865.26.camel@doink> (raw)
In-Reply-To: <4561db676a209fff984a75ade2f552ddbfabb95b.1306603968.git.joe@perches.com>
On Sat, 2011-05-28 at 10:36 -0700, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> fs/coda/coda_linux.h | 5 ++---
> fs/reiserfs/journal.c | 9 +++------
> fs/reiserfs/resize.c | 4 +---
> fs/xfs/linux-2.6/kmem.h | 7 +------
> 4 files changed, 7 insertions(+), 18 deletions(-)
>
Acked-by: Alex Elder <aelder@sgi.com>
. . .
> 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)
> {
WARNING: multiple messages have this Message-ID (diff)
From: Alex Elder <aelder@sgi.com>
To: Joe Perches <joe@perches.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>, <coda@cs.cmu.edu>,
Jiri Kosina <trivial@kernel.org>, <xfs-masters@oss.sgi.com>,
<codalist@TELEMANN.coda.cs.cmu.edu>,
<linux-kernel@vger.kernel.org>, <reiserfs-devel@vger.kernel.org>,
<xfs@oss.sgi.com>
Subject: Re: [TRIVIAL PATCH next 13/15] fs: Convert vmalloc/memset to vzalloc
Date: Tue, 31 May 2011 13:20:39 -0500 [thread overview]
Message-ID: <1306866039.2865.26.camel@doink> (raw)
In-Reply-To: <4561db676a209fff984a75ade2f552ddbfabb95b.1306603968.git.joe@perches.com>
On Sat, 2011-05-28 at 10:36 -0700, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> fs/coda/coda_linux.h | 5 ++---
> fs/reiserfs/journal.c | 9 +++------
> fs/reiserfs/resize.c | 4 +---
> fs/xfs/linux-2.6/kmem.h | 7 +------
> 4 files changed, 7 insertions(+), 18 deletions(-)
>
Acked-by: Alex Elder <aelder@sgi.com>
. . .
> 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)
> {
next prev parent reply other threads:[~2011-05-31 18:20 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-28 17:36 [TRIVIAL PATCH next 00/15] treewide: Convert vmalloc/memset to vzalloc Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 01/15] s390: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 02/15] x86: " Joe Perches
2011-05-29 19:25 ` [tip:x86/cleanups] x86: Convert vmalloc()+memset() to vzalloc() tip-bot for Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 03/15] atm: Convert vmalloc/memset to vzalloc Joe Perches
2011-05-28 17:36 ` [Drbd-dev] [TRIVIAL PATCH next 04/15] drbd: " Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 05/15] char: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 06/15] isdn: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 07/15] md: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 08/15] media: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 09/15] mtd: " Joe Perches
2011-06-01 8:20 ` Artem Bityutskiy
2011-06-01 8:20 ` Artem Bityutskiy
2011-05-28 17:36 ` [TRIVIAL PATCH next 10/15] scsi: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 11/15] staging: " Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 12/15] video: " Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:48 ` Heiko Stübner
2011-05-28 17:48 ` Heiko Stübner
2011-05-28 18:13 ` [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/memset to Joe Perches
2011-05-28 18:13 ` [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/memset to vzalloc Joe Perches
2011-05-31 14:28 ` [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/memset to Konrad Rzeszutek Wilk
2011-05-31 14:28 ` [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/memset to vzalloc Konrad Rzeszutek Wilk
2011-05-31 14:28 ` Konrad Rzeszutek Wilk
2011-06-02 8:26 ` Paul Mundt
2011-06-02 8:26 ` Paul Mundt
2011-06-02 8:26 ` Paul Mundt
2011-05-28 18:13 ` Joe Perches
2011-05-28 17:48 ` [TRIVIAL PATCH " Heiko Stübner
2011-05-30 11:40 ` Mel Gorman
2011-05-30 11:40 ` [TRIVIAL PATCH next 12/15] video: Convert vmalloc/memset to Mel Gorman
2011-05-30 11:40 ` [TRIVIAL PATCH next 12/15] video: Convert vmalloc/memset to vzalloc Mel Gorman
2011-05-28 17:36 ` [TRIVIAL PATCH next 13/15] fs: " Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-31 18:20 ` Alex Elder [this message]
2011-05-31 18:20 ` Alex Elder
2011-05-31 18:20 ` Alex Elder
2011-05-28 17:36 ` [TRIVIAL PATCH next 14/15] mm: " Joe Perches
2011-05-28 17:36 ` Joe Perches
2011-05-31 19:47 ` Paul Menage
2011-05-31 19:47 ` Paul Menage
[not found] ` <f3d616b526e00bd8f01a250b7ce8c5a6e2412768.1306603968.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
2011-05-31 19:47 ` Paul Menage
[not found] ` <cover.1306603968.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
2011-05-28 17:36 ` Joe Perches
2011-05-28 17:36 ` [TRIVIAL PATCH next 15/15] net: " Joe Perches
2011-06-02 14:49 ` Pablo Neira Ayuso
2011-06-02 21:39 ` David Miller
2011-06-03 1:35 ` Joe Perches
2011-06-03 9:39 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306866039.2865.26.camel@doink \
--to=aelder@sgi.com \
--cc=coda@cs.cmu.edu \
--cc=codalist@TELEMANN.coda.cs.cmu.edu \
--cc=jaharkes@cs.cmu.edu \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=reiserfs-devel@vger.kernel.org \
--cc=trivial@kernel.org \
--cc=xfs-masters@oss.sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.