[RFC 3/4] mm/hugetlb: Restrict HugeTLB page allocations only to system ram nodemask

2016-11-22 Thread Anshuman Khandual
HugeTLB allocation/release/accounting currently spans across all the nodes under N_MEMORY node mask. Coherent memory nodes should not be part of these allocations. So use system_ram() call to fetch system RAM only nodes on the platform which can then be used for HugeTLB allocation purpose instead

[RFC 3/4] mm/hugetlb: Restrict HugeTLB page allocations only to system ram nodemask

2016-11-22 Thread Anshuman Khandual
HugeTLB allocation/release/accounting currently spans across all the nodes under N_MEMORY node mask. Coherent memory nodes should not be part of these allocations. So use system_ram() call to fetch system RAM only nodes on the platform which can then be used for HugeTLB allocation purpose instead