* [6/13] use __GFP_NOKILL in select_bits_alloc()
@ 2002-09-26 5:42 William Lee Irwin III
0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-09-26 5:42 UTC (permalink / raw)
To: linux-mm
select_bits_alloc() is done in select.c, triggering the OOM killer.
The system calls doing so are failable, and so use __GFP_NOKILL.
diff -urN linux-2.5.33/fs/select.c linux-2.5.33-mm5/fs/select.c
--- linux-2.5.33/fs/select.c 2002-08-31 15:04:47.000000000 -0700
+++ linux-2.5.33-mm5/fs/select.c 2002-09-08 22:00:56.000000000 -0700
@@ -237,7 +237,7 @@
static void *select_bits_alloc(int size)
{
- return kmalloc(6 * size, GFP_KERNEL);
+ return kmalloc(6 * size, GFP_KERNEL | __GFP_NOKILL);
}
static void select_bits_free(void *bits, int size)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-26 5:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 5:42 [6/13] use __GFP_NOKILL in select_bits_alloc() William Lee Irwin III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox