page allocator: use a pre-calculated value instead of num_online_nodes() in fast...
[firefly-linux-kernel-4.4.55.git] / net / sunrpc / svc.c
index 8847add6ca164a7aea722b96978c44abb5ba7158..5ed8931dfe98f8af810a28a046f9c6729f07e6a3 100644 (file)
@@ -124,7 +124,7 @@ svc_pool_map_choose_mode(void)
 {
        unsigned int node;
 
-       if (num_online_nodes() > 1) {
+       if (nr_online_nodes > 1) {
                /*
                 * Actually have multiple NUMA nodes,
                 * so split pools on NUMA node boundaries