* Re: [patch 3/6] fault-injection capability for alloc_pages() [bug fix]
@ 2006-09-06 16:07 Don Mullis
0 siblings, 0 replies; only message in thread
From: Don Mullis @ 2006-09-06 16:07 UTC (permalink / raw)
To: lkml
Fix compilation when CONFIG_FAIL_PAGE_ALLOC=n
Signed-off-by: Don Mullis <dwm@meer.net>
---
mm/page_alloc.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.17/mm/page_alloc.c
===================================================================
--- linux-2.6.17.orig/mm/page_alloc.c
+++ linux-2.6.17/mm/page_alloc.c
@@ -938,9 +938,11 @@ __alloc_pages(gfp_t gfp_mask, unsigned i
might_sleep_if(wait);
+#ifdef CONFIG_FAIL_PAGE_ALLOC
if (!(gfp_mask & __GFP_NOFAIL) &&
should_fail(fail_page_alloc, 1 << order))
return NULL;
+#endif
restart:
z = zonelist->zones; /* the list of zones suitable for gfp_mask */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-06 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06 16:07 [patch 3/6] fault-injection capability for alloc_pages() [bug fix] Don Mullis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®