page allocator: use a pre-calculated value instead of num_online_nodes() in fast...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / mm / slub.c
index 30354bfeb43d5b093669fb0ef62b213e0c3991f2..1c950775d6bec7827a3375da5ca1fc2abe47ac14 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3737,7 +3737,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
                                                 to_cpumask(l->cpus));
                }
 
-               if (num_online_nodes() > 1 && !nodes_empty(l->nodes) &&
+               if (nr_online_nodes > 1 && !nodes_empty(l->nodes) &&
                                len < PAGE_SIZE - 60) {
                        len += sprintf(buf + len, " nodes=");
                        len += nodelist_scnprintf(buf + len, PAGE_SIZE - len - 50,