diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-05-18 03:36:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-18 11:17:17 -0400 |
commit | 32f9306b161a5e0c892132f7227f36de94090289 (patch) | |
tree | 69a04fdd1d38e535af7729be18e4244dad4b1013 /Documentation | |
parent | 223a10a98135da38d3668973d72cdffb1ced4b7d (diff) |
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: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/vm/slabinfo.c | 9 |
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 | ||
263 | void slab_validate(struct slabinfo *s) | 263 | void 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 | ||
268 | void slab_shrink(struct slabinfo *s) | 271 | void 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 | ||
551 | void slab_debug(struct slabinfo *s) | 557 | void 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 | } |