aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/vm
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/vm')
-rw-r--r--Documentation/vm/slabinfo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/vm/slabinfo.c b/Documentation/vm/slabinfo.c
index 434af27a32ac..d4f21ffd1404 100644
--- a/Documentation/vm/slabinfo.c
+++ b/Documentation/vm/slabinfo.c
@@ -262,11 +262,17 @@ void decode_numa_list(int *numa, char *t)
262 262
263void slab_validate(struct slabinfo *s) 263void slab_validate(struct slabinfo *s)
264{ 264{
265 if (strcmp(s->name, "*") == 0)
266 return;
267
265 set_obj(s, "validate", 1); 268 set_obj(s, "validate", 1);
266} 269}
267 270
268void slab_shrink(struct slabinfo *s) 271void slab_shrink(struct slabinfo *s)
269{ 272{
273 if (strcmp(s->name, "*") == 0)
274 return;
275
270 set_obj(s, "shrink", 1); 276 set_obj(s, "shrink", 1);
271} 277}
272 278
@@ -550,6 +556,9 @@ int slab_empty(struct slabinfo *s)
550 556
551void slab_debug(struct slabinfo *s) 557void slab_debug(struct slabinfo *s)
552{ 558{
559 if (strcmp(s->name, "*") == 0)
560 return;
561
553 if (sanity && !s->sanity_checks) { 562 if (sanity && !s->sanity_checks) {
554 set_obj(s, "sanity", 1); 563 set_obj(s, "sanity", 1);
555 } 564 }