lkml.org 
[lkml]   [2002]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] gfp_t
Date
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.

[Jens, bio_alloc() has the args reversed from normal (Grrr!)]

It's worse than I'd hoped, better than I feared. I didn't find any
bugs (but then I didn't try compiling with "allyesconfig").

Notes:
o People use GFP_KERNEL instead of SLAB_KERNEL for kmem_cache_alloc,
so I changed the slab types too.

o If we really want to do this, maybe introduce gfp_t as a typedef to
int, and use it in all the interfaces first, then change the
definition later.

BTW, I'm leaving in a couple of hours, so I'm leaving this here for
someone else to get enthusiastic about 8)

Cheers,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.048 / U:1.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site