Re: [PATCH RFC v2 2/4] mm/mempolicy: remove redundant check in get_nodes

2017-10-31 Thread Vlastimil Babka
On 10/27/2017 12:14 PM, Yisheng Xie wrote: > We have already checked whether maxnode is a page worth of bits, by: > maxnode > PAGE_SIZE*BITS_PER_BYTE > > So no need to check it once more. > > Signed-off-by: Yisheng Xie Acked-by: Vlastimil Babka > --- > mm/mempolicy.c | 2 -- > 1 file cha

[PATCH RFC v2 2/4] mm/mempolicy: remove redundant check in get_nodes

2017-10-27 Thread Yisheng Xie
We have already checked whether maxnode is a page worth of bits, by: maxnode > PAGE_SIZE*BITS_PER_BYTE So no need to check it once more. Signed-off-by: Yisheng Xie --- mm/mempolicy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 613e9d0..3b51bb3