Messages in this thread |  | | Date | Mon, 16 Sep 2013 13:26:07 -0700 | | From | Cody P Schafer <> | | Subject | Re: [PATCH] mm/mempolicy: use NUMA_NO_NODE |
| |
> @@ -1802,11 +1802,11 @@ static inline unsigned interleave_nid(struct mempolicy *pol, > > /* > * Return the bit number of a random bit set in the nodemask. > - * (returns -1 if nodemask is empty) > + * (returns NUMA_NO_NOD if nodemask is empty)
s/NUMA_NO_NOD/NUMA_NO_NODE/
> */ > int node_random(const nodemask_t *maskp) > { > - int w, bit = -1; > + int w, bit = NUMA_NO_NODE; > > w = nodes_weight(*maskp); > if (w) >
|  |