login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
16
Re: [PATCH -mm] relayfs: support larger relay buffer
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pekka Enberg
Subject:
Re: [PATCH -mm] relayfs: support larger relay buffer
Date: Wednesday, April 16, 2008 - 1:33 am
On Tue, Apr 15, 2008 at 6:27 PM, Masami Hiramatsu <mhiramat@redhat.com> wrote:
quoted text
> Use vmalloc() and memset() instead of kcalloc() to allocate a page* array > when the array size is bigger than one page. This enables relayfs to support > bigger relay buffers than 64MB on 4k-page system, 512MB on 16k-page system. > > Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> > --- > @@ -130,7 +138,10 @@ static void *relay_alloc_buf(struct rcha > depopulate: > for (j = 0; j < i; j++) > __free_page(buf->page_array[j]); > - kfree(buf->page_array); > + if (pa_size > PAGE_SIZE)
You can use is_vmalloc_addr() here.
quoted text
> + vfree(buf->page_array); > + else > + kfree(buf->page_array); > return NULL; > } >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH -mm] relayfs: support larger relay buffer
, Masami Hiramatsu
, (Tue Apr 15, 8:27 am)
Re: [PATCH -mm] relayfs: support larger relay buffer
, Tom Zanussi
, (Tue Apr 15, 9:22 pm)
Re: [PATCH -mm] relayfs: support larger relay buffer
, Pekka Enberg
, (Wed Apr 16, 1:33 am)
Re: [PATCH -mm] relayfs: support larger relay buffer
, Masami Hiramatsu
, (Wed Apr 16, 7:36 am)
Re: [PATCH -mm] relayfs: support larger relay buffer
, Masami Hiramatsu
, (Wed Apr 16, 9:19 am)
[PATCH -mm] relayfs: support larger relay buffer take 2
, Masami Hiramatsu
, (Wed Apr 16, 11:03 am)
Re: [PATCH -mm] relayfs: support larger relay buffer take 2
, Pekka J Enberg
, (Wed Apr 16, 11:21 am)
Re: [PATCH -mm] relayfs: support larger relay buffer take 2
, Masami Hiramatsu
, (Wed Apr 16, 11:34 am)
[PATCH -mm] relayfs: support larger relay buffer take 3
, Masami Hiramatsu
, (Wed Apr 16, 12:51 pm)
Re: [PATCH -mm] relayfs: support larger relay buffer take 3
, Pekka Enberg
, (Wed Apr 16, 12:54 pm)
Re: [PATCH -mm] relayfs: support larger relay buffer take 3
, Andrew Morton
, (Wed Apr 16, 1:48 pm)
Re: [PATCH -mm] relayfs: support larger relay buffer take 3
, Masami Hiramatsu
, (Wed Apr 16, 2:00 pm)
Re: [PATCH -mm] relayfs: support larger relay buffer take 3
, Tom Zanussi
, (Wed Apr 16, 9:05 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Russell King
Re: ARM defconfig files
Benjamin Herrenschmidt
Re: [PATCH 1/4] hvc_console: do not set low_latency
Jordan Crouse
Re: 2.6.25-mm1
Carsten Otte
Re: [patch] ext2: xip check fix
James Morris
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Andreas Ericsson
Re: why not TortoiseGit
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Andi Kleen
Re: RFC: Nagle latency tuning
Gary Thomas
Re: Marvell 88E609x switch?
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
trivial: fix comment typo in fs/compat.c
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Rob Shepherd
x86 hardware for router system
Flickr Photo Map for iPad and iPhone
Thanks for the Great Launch of Flickr Photo Map for iPad + iPhone
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate