From: Kirill A. Shutemov Date: Fri, 25 Mar 2016 21:22:20 +0000 (-0700) Subject: thp: fix typo in khugepaged_scan_pmd() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fda2788b03c1868e2f20b3b7995b8cc2adf4715;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Ebru Akagunduz Cc: Rik van Riel Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/huge_memory.c b/mm/huge_memory.c index fbfb1b8d6726..86f9f8b82f8e 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -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)) {