slub: move slabinfo.c to tools/slub/slabinfo.c
We now have a tools directory for these things. Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
parent
c8ddb2713c
commit
0d24db337e
1 changed files with 3 additions and 3 deletions
|
@ -607,7 +607,7 @@ static int debug_opt_scan(char *opt)
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( ; *opt; opt++)
|
for ( ; *opt; opt++)
|
||||||
switch (*opt) {
|
switch (*opt) {
|
||||||
case 'F' : case 'f':
|
case 'F' : case 'f':
|
||||||
if (sanity)
|
if (sanity)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1127,7 +1127,7 @@ static void read_slab_dir(void)
|
||||||
continue;
|
continue;
|
||||||
switch (de->d_type) {
|
switch (de->d_type) {
|
||||||
case DT_LNK:
|
case DT_LNK:
|
||||||
alias->name = strdup(de->d_name);
|
alias->name = strdup(de->d_name);
|
||||||
count = readlink(de->d_name, buffer, sizeof(buffer));
|
count = readlink(de->d_name, buffer, sizeof(buffer));
|
||||||
|
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
|
@ -1143,7 +1143,7 @@ static void read_slab_dir(void)
|
||||||
case DT_DIR:
|
case DT_DIR:
|
||||||
if (chdir(de->d_name))
|
if (chdir(de->d_name))
|
||||||
fatal("Unable to access slab %s\n", slab->name);
|
fatal("Unable to access slab %s\n", slab->name);
|
||||||
slab->name = strdup(de->d_name);
|
slab->name = strdup(de->d_name);
|
||||||
slab->alias = 0;
|
slab->alias = 0;
|
||||||
slab->refs = 0;
|
slab->refs = 0;
|
||||||
slab->aliases = get_obj("aliases");
|
slab->aliases = get_obj("aliases");
|
Loading…
Reference in a new issue