mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gfp_t
@ 2002-09-26  4:35 Rusty Russell
  2002-09-26 18:59 ` Rasmus Andersen
  0 siblings, 1 reply; 7+ messages in thread
From: Rusty Russell @ 2002-09-26  4:35 UTC (permalink / raw)
  To: mingo, davem; +Cc: torvalds, linux-kernel, Jens Axboe

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

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.


[-- Attachment #2: gfp_t safety patch --]
[-- Type: application/octet-stream, Size: 13993 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-10-17  7:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26  4:35 [PATCH] gfp_t Rusty Russell
2002-09-26 18:59 ` Rasmus Andersen
2002-09-26 19:29   ` Rasmus Andersen
2002-09-26 21:15     ` Rasmus Andersen
2002-10-15 23:10       ` Rusty Russell
2002-10-16  2:14         ` David S. Miller
2002-10-17  6:40           ` Rusty Russell

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