mm-using-for_each_online_node-and-node_online-instead-of-open-coding.patch removed from -mm tree
The quilt patch titled
Subject: mm: use for_each_online_node and node_online instead of open coding
has been removed from the -mm tree. Its filename was
mm-using-for_each_online_node-and-node_online-instead-of-open-coding.patch
This patch was dropped because it was merged into mm-stable
------------------------------------------------------
From: Peng Liu <[email protected]>
Subject: mm: use for_each_online_node and node_online instead of open coding
Use more generic functions to deal with issues related to online nodes. The changes will make the code simplified.
Signed-off-by Peng Liu <[email protected]>
Suggested-by Davidlohr Bueso <[email protected]>
Suggested-by Andrew Morton <[email protected]>
Reviewed-by Muchun Song <[email protected]>
Reviewed-by David Hildenbrand <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/ia64/kernel/uncached.c | 2 +- mm/hugetlb.c | 4 ++-- mm/page_ext.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
arch/ia64/kernel/uncached.c renamed from arch/ia64/kernel/uncached.c~mm-using-for_each_online_node-and-node_online-instead-of-open-coding +1 -1
@@ -261,7 +261,7 @@ static int __init uncached_init(void) {int nid; -for_each_node_state (nid,N_ONLINE ) { +for_each_online_node (nid) { uncached_pools[nid].pool =gen_pool_create (PAGE_SHIFT , nid);mutex_init (&uncached_pools[nid].add_chunk_mutex); }
mm/hugetlb.c renamed from mm/hugetlb.c~mm-using-for_each_online_node-and-node_online-instead-of-open-coding +2 -2
@@ -6971,7 +6971,7 @@ void __init hugetlb_cma_reserve(int ordeif (hugetlb_cma_size_in_node[nid] ==0 )continue ; -if (!node_state (nid,N_ONLINE )) { +if (!node_online (nid)) {pr_warn ("hugetlb_cma: invalid node %d specified\n" , nid); hugetlb_cma_size -= hugetlb_cma_size_in_node[nid]; hugetlb_cma_size_in_node[nid] =0 ;
@@ -7010,7 +7010,7 @@ void __init hugetlb_cma_reserve(int orde } reserved =0 ; -for_each_node_state (nid,N_ONLINE ) { +for_each_online_node (nid) {int res;char name[CMA_MAX_NAME ];
mm/page_ext.c renamed from mm/page_ext.c~mm-using-for_each_online_node-and-node_online-instead-of-open-coding +1 -1
@@ -320,7 +320,7 @@ static int __meminit online_page_ext(uns* online__pages(), and start_pfn should exist. */ nid =pfn_to_nid (start_pfn); -VM_BUG_ON (!node_state (nid,N_ONLINE )); +VM_BUG_ON (!node_online (nid)); }for (pfn = start; !fail && pfn < end; pfn +=PAGES_PER_SECTION )
_
Patches currently in -mm which might be from [email protected] are