This series fix three bugs of hugetlb: 1) Invalid use of nr_online_nodes; 2) Inconsistency between 1G hugepage and 2M hugepage; 3) Useless information in dmesg. v1->v2: Split "return 1" into a single patch as suggested by Mike. v2->v3: Fix invalid use of nr_online_nodes as suggested by David. Peng Liu (4): hugetlb: Fix wrong use of nr_online_nodes hugetlb: Fix hugepages_setup when deal with pernode hugetlb: Fix return value of __setup handlers hugetlb: Clean up hugetlb_cma_reserve mm/hugetlb.c | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) -- 2.18.0.huawei.25