[go: up one dir, main page]

lkml.org 
[lkml]   [2013]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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)
>



\
 
 \ /
  Last update: 2013-09-16 22:41    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog