提交 0d24db33 编写于 作者: C Christoph Lameter 提交者: Pekka Enberg

slub: move slabinfo.c to tools/slub/slabinfo.c

We now have a tools directory for these things.
Reviewed-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: NDavid Rientjes <rientjes@google.com>
Signed-off-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NPekka Enberg <penberg@kernel.org>
上级 c8ddb271
...@@ -607,7 +607,7 @@ static int debug_opt_scan(char *opt) ...@@ -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) ...@@ -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) ...@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册