mm/hugetlb: get rid of NODEMASK_ALLOC
NODEMASK_ALLOC is used to allocate a nodemask bitmap, and it does it by
first determining whether it should be allocated on the stack or
dynamically, depending on NODES_SHIFT. Right now, it goes the dynamic
path whenever the nodemask_t is above 32 bytes.
Although we could bump it to a reasonable value, the largest a nodemask_t
can get is 128 bytes, so since __nr_hugepages_store_common is called from
a rather short stack we can just get rid of the NODEMASK_ALLOC call here.
This reduces some code churn and complexity.
Signed-off-by: Oscar Salvador <firstname.lastname@example.org>
Reviewed-by: Mike Kravetz <email@example.com>
Reviewed-by: Naoya Horiguchi <firstname.lastname@example.org>
Cc: Alex Ghiti <email@example.com>
Cc: David Rientjes <firstname.lastname@example.org>
Cc: Jing Xiangfeng <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
1 file changed