From: Rasmus Andersen <rasmus@jaquet.dk>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: mingo@redhat.com, davem@redhat.com, torvalds@transmeta.com,
linux-kernel@vger.kernel.org, Jens Axboe <axboe@suse.de>
Subject: Re: [PATCH] gfp_t
Date: Thu, 26 Sep 2002 23:15:05 +0200 [thread overview]
Message-ID: <20020926211505.GE1892@jaquet.dk> (raw)
In-Reply-To: <20020926192931.GB1892@jaquet.dk>
[-- Attachment #1: Type: text/plain, Size: 1997 bytes --]
On Thu, Sep 26, 2002 at 09:29:32PM +0200, Rasmus Andersen wrote:
> On Thu, Sep 26, 2002 at 08:59:24PM +0200, Rasmus Andersen wrote:
> > On Thu, Sep 26, 2002 at 02:35:30PM +1000, Rusty Russell wrote:
> > > This creates a mythical gfp_t for passing gfp states, and conversion
> > > macros __GFP() and __UNGFP(), to give warnings, It's 55k, so
> > > compressed and attached.
> >
> > This breaks ntfs/malloc.h which is doing the following:
> > 49: return __vmalloc(size, GFP_NOFS | __GFP_HIGHMEM, PAGE_KERNEL);
> [...]
>
> After having had a bit more caffeine, I guess I would like to
> change my previous mail to: These two patches for mm/numa.c and
> ntfs/malloc.h needs to be in your patchset as well.
Another one:
--- linux-2.5.38/drivers/char/synclink.c Sun Sep 22 06:25:06 2002
+++ linux-2.5.38-gfp/drivers/char/synclink.c Thu Sep 26 23:01:57 2002
@@ -3975,7 +3975,7 @@
/* inspect portions of the buffer while other portions are being */
/* updated by the adapter using Bus Master DMA. */
- info->buffer_list = kmalloc(BUFFERLISTSIZE, GFP_KERNEL | GFP_DMA);
+ info->buffer_list = kmalloc(BUFFERLISTSIZE, gfp_sub(GFP_KERNEL, __UNGFP(GFP_DMA)));
if ( info->buffer_list == NULL )
return -ENOMEM;
@@ -4087,7 +4087,7 @@
} else {
/* ISA adapter uses system memory. */
BufferList[i].virt_addr =
- kmalloc(DMABUFFERSIZE, GFP_KERNEL | GFP_DMA);
+ kmalloc(DMABUFFERSIZE, gfp_sub(GFP_KERNEL, __UNGFP(GFP_DMA)));
if ( BufferList[i].virt_addr == NULL )
return -ENOMEM;
phys_addr = isa_virt_to_bus(BufferList[i].virt_addr);
@@ -4159,7 +4159,7 @@
*/
int mgsl_alloc_intermediate_rxbuffer_memory(struct mgsl_struct *info)
{
- info->intermediate_rxbuffer = kmalloc(info->max_frame_size, GFP_KERNEL | GFP_DMA);
+ info->intermediate_rxbuffer = kmalloc(info->max_frame_size, gfp_sub(GFP_KERNEL, __UNGFP(GFP_DMA)));
if ( info->intermediate_rxbuffer == NULL )
return -ENOMEM;
Regards,
Rasmus
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2002-09-26 21:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-26 4:35 Rusty Russell
2002-09-26 18:59 ` Rasmus Andersen
2002-09-26 19:29 ` Rasmus Andersen
2002-09-26 21:15 ` Rasmus Andersen [this message]
2002-10-15 23:10 ` Rusty Russell
2002-10-16 2:14 ` David S. Miller
2002-10-17 6:40 ` Rusty Russell
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=20020926211505.GE1892@jaquet.dk \
--to=rasmus@jaquet.dk \
--cc=axboe@suse.de \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rusty@rustcorp.com.au \
--cc=torvalds@transmeta.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome