Skip to content

Commit

Permalink
slub: another slabinfo fix
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed May 18, 2007
1 parent 223a10a commit 32f9306
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/vm/slabinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,17 @@ void decode_numa_list(int *numa, char *t)

void slab_validate(struct slabinfo *s)
{
if (strcmp(s->name, "*") == 0)
return;

set_obj(s, "validate", 1);
}

void slab_shrink(struct slabinfo *s)
{
if (strcmp(s->name, "*") == 0)
return;

set_obj(s, "shrink", 1);
}

Expand Down Expand Up @@ -550,6 +556,9 @@ int slab_empty(struct slabinfo *s)

void slab_debug(struct slabinfo *s)
{
if (strcmp(s->name, "*") == 0)
return;

if (sanity && !s->sanity_checks) {
set_obj(s, "sanity", 1);
}
Expand Down

0 comments on commit 32f9306

Please sign in to comment.