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>
This commit is contained in:

committed by
Linus Torvalds

parent
751efd8610
commit
00ef2d2f84
@@ -2376,7 +2376,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm,
|
||||
struct page *page;
|
||||
unsigned long _address;
|
||||
spinlock_t *ptl;
|
||||
int node = -1;
|
||||
int node = NUMA_NO_NODE;
|
||||
|
||||
VM_BUG_ON(address & ~HPAGE_PMD_MASK);
|
||||
|
||||
@@ -2406,7 +2406,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm,
|
||||
* be more sophisticated and look at more pages,
|
||||
* but isn't for now.
|
||||
*/
|
||||
if (node == -1)
|
||||
if (node == NUMA_NO_NODE)
|
||||
node = page_to_nid(page);
|
||||
VM_BUG_ON(PageCompound(page));
|
||||
if (!PageLRU(page) || PageLocked(page) || !PageAnon(page))
|
||||
|
Reference in New Issue
Block a user