projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2afc745
)
memcg, kmem: use is_root_cache instead of hard code
author
Qiang Huang
<
[email protected]
>
Tue, 12 Nov 2013 23:08:22 +0000
(15:08 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Nov 2013 03:09:10 +0000
(12:09 +0900)
Signed-off-by: Qiang Huang <
[email protected]
>
Reviewed-by: Pekka Enberg <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: Glauber Costa <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index c89072443166e95e547c1e8f4207ca4a1b4364f7..3d28d5a61efd6aaffb87507987621cb856001c3c 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-59,6
+59,7
@@
#include <net/sock.h>
#include <net/ip.h>
#include <net/tcp_memcontrol.h>
+#include "slab.h"
#include <asm/uaccess.h>
@@
-3131,7
+3132,7
@@
int memcg_update_cache_size(struct kmem_cache *s, int num_groups)
{
struct memcg_cache_params *cur_params = s->memcg_params;
- VM_BUG_ON(
s->memcg_params && !s->memcg_params->is_root_cache
);
+ VM_BUG_ON(
!is_root_cache(s)
);
if (num_groups > memcg_limited_groups_array_size) {
int i;