projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swap: clean-up #ifdef in page_mapping()
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
mm
/
slab.h
diff --git
a/mm/slab.h
b/mm/slab.h
index
620ceed
..
a535033
100644
(file)
--- a/
mm/slab.h
+++ b/
mm/slab.h
@@
-162,6
+162,8
@@
static inline const char *cache_name(struct kmem_cache *s)
static inline struct kmem_cache *cache_from_memcg(struct kmem_cache *s, int idx)
{
+ if (!s->memcg_params)
+ return NULL;
return s->memcg_params->memcg_caches[idx];
}