aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2013-02-22 19:35:36 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-23 20:50:21 -0500
commit00ef2d2f84babb9b209f0fc003bc490c6bf1e6ef (patch)
tree9377f30bced99b458f7466ec1719ca284b4b2003 /mm/huge_memory.c
parent751efd8610d3d7d67b7bdf7f62646edea7365dd7 (diff)
mm: use NUMA_NO_NODE
Make a sweep through mm/ and convert code that uses -1 directly to using the more appropriate NUMA_NO_NODE. Signed-off-by: David Rientjes <rientjes@google.com> Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r--mm/huge_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 6049376c7226..bfa142e67b1c 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -2376,7 +2376,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm,
2376 struct page *page; 2376 struct page *page;
2377 unsigned long _address; 2377 unsigned long _address;
2378 spinlock_t *ptl; 2378 spinlock_t *ptl;
2379 int node = -1; 2379 int node = NUMA_NO_NODE;
2380 2380
2381 VM_BUG_ON(address & ~HPAGE_PMD_MASK); 2381 VM_BUG_ON(address & ~HPAGE_PMD_MASK);
2382 2382
@@ -2406,7 +2406,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm,
2406 * be more sophisticated and look at more pages, 2406 * be more sophisticated and look at more pages,
2407 * but isn't for now. 2407 * but isn't for now.
2408 */ 2408 */
2409 if (node == -1) 2409 if (node == NUMA_NO_NODE)
2410 node = page_to_nid(page); 2410 node = page_to_nid(page);
2411 VM_BUG_ON(PageCompound(page)); 2411 VM_BUG_ON(PageCompound(page));
2412 if (!PageLRU(page) || PageLocked(page) || !PageAnon(page)) 2412 if (!PageLRU(page) || PageLocked(page) || !PageAnon(page))