lkml.org 
[lkml]   [2006]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [patch 2/6] fault-injection capability for kmalloc. [bug fix]
From
Date
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))) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-09-06 08:43    [W:0.189 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site