thp: fix typo in khugepaged_scan_pmd()
!PageLRU should lead to SCAN_PAGE_LRU, not SCAN_SCAN_ABORT result. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Ebru Akagunduz <ebru.akagunduz@gmail.com> Cc: Rik van Riel <riel@redhat.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0ba1d91df9
commit
0fda2788b0
|
@ -2578,7 +2578,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm,
|
|||
}
|
||||
khugepaged_node_load[node]++;
|
||||
if (!PageLRU(page)) {
|
||||
result = SCAN_SCAN_ABORT;
|
||||
result = SCAN_PAGE_LRU;
|
||||
goto out_unmap;
|
||||
}
|
||||
if (PageLocked(page)) {
|
||||
|
|
Loading…
Reference in New Issue