diff options
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 4ab137403e1a..232a99715ef2 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -115,7 +115,7 @@ fail: | |||
115 | static int | 115 | static int |
116 | svc_pool_map_init_percpu(struct svc_pool_map *m) | 116 | svc_pool_map_init_percpu(struct svc_pool_map *m) |
117 | { | 117 | { |
118 | unsigned int maxpools = highest_possible_processor_id()+1; | 118 | unsigned int maxpools = highest_possible_processor_id() + 1; |
119 | unsigned int pidx = 0; | 119 | unsigned int pidx = 0; |
120 | unsigned int cpu; | 120 | unsigned int cpu; |
121 | int err; | 121 | int err; |
@@ -143,7 +143,7 @@ svc_pool_map_init_percpu(struct svc_pool_map *m) | |||
143 | static int | 143 | static int |
144 | svc_pool_map_init_pernode(struct svc_pool_map *m) | 144 | svc_pool_map_init_pernode(struct svc_pool_map *m) |
145 | { | 145 | { |
146 | unsigned int maxpools = highest_possible_node_id()+1; | 146 | unsigned int maxpools = nr_node_ids; |
147 | unsigned int pidx = 0; | 147 | unsigned int pidx = 0; |
148 | unsigned int node; | 148 | unsigned int node; |
149 | int err; | 149 | int err; |