lockdep: annotate reclaim context (__GFP_NOFS)
[linux-2.6-block.git] / mm / slub.c
index bdc9abb08a230f2724ad842a0bc4928da0e48d23..214eb207c513f46276eb06106e94a92e2aa2060b 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1596,6 +1596,7 @@ static __always_inline void *slab_alloc(struct kmem_cache *s,
        unsigned long flags;
        unsigned int objsize;
 
+       lockdep_trace_alloc(gfpflags);
        might_sleep_if(gfpflags & __GFP_WAIT);
 
        if (should_failslab(s->objsize, gfpflags))