Commit 32f9306b authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

slub: another slabinfo fix

The slab manipulation functions should not be triggered by slabs that
are unresovable in the subset of slabs selected on the command line.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 223a10a9
...@@ -262,11 +262,17 @@ void decode_numa_list(int *numa, char *t) ...@@ -262,11 +262,17 @@ void decode_numa_list(int *numa, char *t)
void slab_validate(struct slabinfo *s) void slab_validate(struct slabinfo *s)
{ {
if (strcmp(s->name, "*") == 0)
return;
set_obj(s, "validate", 1); set_obj(s, "validate", 1);
} }
void slab_shrink(struct slabinfo *s) void slab_shrink(struct slabinfo *s)
{ {
if (strcmp(s->name, "*") == 0)
return;
set_obj(s, "shrink", 1); set_obj(s, "shrink", 1);
} }
...@@ -550,6 +556,9 @@ int slab_empty(struct slabinfo *s) ...@@ -550,6 +556,9 @@ int slab_empty(struct slabinfo *s)
void slab_debug(struct slabinfo *s) void slab_debug(struct slabinfo *s)
{ {
if (strcmp(s->name, "*") == 0)
return;
if (sanity && !s->sanity_checks) { if (sanity && !s->sanity_checks) {
set_obj(s, "sanity", 1); set_obj(s, "sanity", 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment