linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [9/13] use __GFP_NOKILL in page_cache_read()
@ 2002-09-26  5:43 William Lee Irwin III
  0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-09-26  5:43 UTC (permalink / raw)
  To: linux-mm

page_cache_read() may be failed instead of killing innocent tasks.


diff -urN linux-2.5.33/mm/filemap.c linux-2.5.33-mm5/mm/filemap.c
--- linux-2.5.33/mm/filemap.c	2002-09-04 04:02:00.000000000 -0700
+++ linux-2.5.33-mm5/mm/filemap.c	2002-09-08 20:04:53.000000000 -0700
@@ -256,7 +256,7 @@
 	struct page *page; 
 	int error;
 
-	page = page_cache_alloc(mapping);
+	page = alloc_page(mapping->gfp_mask | __GFP_NOKILL);
 	if (!page)
 		return -ENOMEM;
 
--
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:43 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:43 [9/13] use __GFP_NOKILL in page_cache_read() 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