diff options
author | Christoph Lameter <cl@linux.com> | 2010-10-21 14:01:56 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-11-06 03:04:32 -0400 |
commit | 0d24db337e6d81c0c620ab65cc6947bd6553f742 (patch) | |
tree | 3654d7545d7604f196f6c97cd76831a93b3dc5c3 | |
parent | c8ddb2713c624f432fa5fe3c7ecffcdda46ea0d4 (diff) |
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>
-rw-r--r-- | tools/slub/slabinfo.c (renamed from Documentation/vm/slabinfo.c) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/vm/slabinfo.c b/tools/slub/slabinfo.c index 92e729f4b676..516551c9f172 100644 --- a/Documentation/vm/slabinfo.c +++ b/tools/slub/slabinfo.c | |||
@@ -607,7 +607,7 @@ static int debug_opt_scan(char *opt) | |||
607 | } | 607 | } |
608 | 608 | ||
609 | for ( ; *opt; opt++) | 609 | for ( ; *opt; opt++) |
610 | switch (*opt) { | 610 | switch (*opt) { |
611 | case 'F' : case 'f': | 611 | case 'F' : case 'f': |
612 | if (sanity) | 612 | if (sanity) |
613 | return 0; | 613 | return 0; |
@@ -1127,7 +1127,7 @@ static void read_slab_dir(void) | |||
1127 | continue; | 1127 | continue; |
1128 | switch (de->d_type) { | 1128 | switch (de->d_type) { |
1129 | case DT_LNK: | 1129 | case DT_LNK: |
1130 | alias->name = strdup(de->d_name); | 1130 | alias->name = strdup(de->d_name); |
1131 | count = readlink(de->d_name, buffer, sizeof(buffer)); | 1131 | count = readlink(de->d_name, buffer, sizeof(buffer)); |
1132 | 1132 | ||
1133 | if (count < 0) | 1133 | if (count < 0) |
@@ -1143,7 +1143,7 @@ static void read_slab_dir(void) | |||
1143 | case DT_DIR: | 1143 | case DT_DIR: |
1144 | if (chdir(de->d_name)) | 1144 | if (chdir(de->d_name)) |
1145 | fatal("Unable to access slab %s\n", slab->name); | 1145 | fatal("Unable to access slab %s\n", slab->name); |
1146 | slab->name = strdup(de->d_name); | 1146 | slab->name = strdup(de->d_name); |
1147 | slab->alias = 0; | 1147 | slab->alias = 0; |
1148 | slab->refs = 0; | 1148 | slab->refs = 0; |
1149 | slab->aliases = get_obj("aliases"); | 1149 | slab->aliases = get_obj("aliases"); |