numa: make "nr_online_nodes" unsigned int
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 5 Mar 2019 23:48:29 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:20 +0000 (21:07 -0800)
commitce0725f78a56a59bdb07cef003bc6fef722da38e
tree3bb517e055b311034aa777eac0b754cdf42bea25
parentb9726c26dc21b15a2faea96fae3a42f2f7fffdcb
numa: make "nr_online_nodes" unsigned int

Number of online NUMA nodes can't be negative as well.  This doesn't
save space as the variable is used only in 32-bit context, but do it
anyway for consistency.

Link: http://lkml.kernel.org/r/20190201223151.GB15820@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/nodemask.h
mm/page_alloc.c