mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Don Mullis <dwm@meer.net>
To: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 3/6] fault-injection capability for alloc_pages() [bug fix]
Date: Wed, 06 Sep 2006 09:07:11 -0700	[thread overview]
Message-ID: <1157558831.9460.52.camel@localhost.localdomain> (raw)

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 */



                 reply	other threads:[~2006-09-06 16:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1157558831.9460.52.camel@localhost.localdomain \
    --to=dwm@meer.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®