diff options
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -43,6 +43,7 @@ struct kmem_cache { | |||
43 | #include <linux/kasan.h> | 43 | #include <linux/kasan.h> |
44 | #include <linux/kmemleak.h> | 44 | #include <linux/kmemleak.h> |
45 | #include <linux/random.h> | 45 | #include <linux/random.h> |
46 | #include <linux/sched/mm.h> | ||
46 | 47 | ||
47 | /* | 48 | /* |
48 | * State of the slab allocator. | 49 | * State of the slab allocator. |
@@ -412,7 +413,10 @@ static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, | |||
412 | gfp_t flags) | 413 | gfp_t flags) |
413 | { | 414 | { |
414 | flags &= gfp_allowed_mask; | 415 | flags &= gfp_allowed_mask; |
415 | lockdep_trace_alloc(flags); | 416 | |
417 | fs_reclaim_acquire(flags); | ||
418 | fs_reclaim_release(flags); | ||
419 | |||
416 | might_sleep_if(gfpflags_allow_blocking(flags)); | 420 | might_sleep_if(gfpflags_allow_blocking(flags)); |
417 | 421 | ||
418 | if (should_failslab(s, flags)) | 422 | if (should_failslab(s, flags)) |