diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3042,13 +3042,15 @@ static int list_locations(struct kmem_cache *s, char *buf, | |||
3042 | n += sprintf(buf + n, " pid=%ld", | 3042 | n += sprintf(buf + n, " pid=%ld", |
3043 | l->min_pid); | 3043 | l->min_pid); |
3044 | 3044 | ||
3045 | if (num_online_cpus() > 1 && !cpus_empty(l->cpus)) { | 3045 | if (num_online_cpus() > 1 && !cpus_empty(l->cpus) && |
3046 | n < PAGE_SIZE - 60) { | ||
3046 | n += sprintf(buf + n, " cpus="); | 3047 | n += sprintf(buf + n, " cpus="); |
3047 | n += cpulist_scnprintf(buf + n, PAGE_SIZE - n - 50, | 3048 | n += cpulist_scnprintf(buf + n, PAGE_SIZE - n - 50, |
3048 | l->cpus); | 3049 | l->cpus); |
3049 | } | 3050 | } |
3050 | 3051 | ||
3051 | if (num_online_nodes() > 1 && !nodes_empty(l->nodes)) { | 3052 | if (num_online_nodes() > 1 && !nodes_empty(l->nodes) && |
3053 | n < PAGE_SIZE - 60) { | ||
3052 | n += sprintf(buf + n, " nodes="); | 3054 | n += sprintf(buf + n, " nodes="); |
3053 | n += nodelist_scnprintf(buf + n, PAGE_SIZE - n - 50, | 3055 | n += nodelist_scnprintf(buf + n, PAGE_SIZE - n - 50, |
3054 | l->nodes); | 3056 | l->nodes); |