From: Don Mullis <dwm@meer.net>
To: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 2/6] fault-injection capability for kmalloc. [bug fix]
Date: Tue, 05 Sep 2006 22:50:58 -0700 [thread overview]
Message-ID: <1157521858.9460.39.camel@localhost.localdomain> (raw)
Fix compilation when CONFIG_FAILSLAB=n .
Signed-off-by: Don Mullis <dwm@meer.net>
---
mm/slab.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.17/mm/slab.c
===================================================================
--- linux-2.6.17.orig/mm/slab.c
+++ linux-2.6.17/mm/slab.c
@@ -2985,9 +2985,11 @@ static inline void *____cache_alloc(stru
void *objp;
struct array_cache *ac;
+#ifdef CONFIG_FAILSLAB
if (!(flags & __GFP_NOFAIL) && cachep != &cache_cache &&
should_fail(failslab, obj_size(cachep)))
return NULL;
+#endif
#ifdef CONFIG_NUMA
if (unlikely(current->flags & (PF_SPREAD_SLAB | PF_MEMPOLICY))) {
reply other threads:[~2006-09-06 6:40 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=1157521858.9460.39.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®