thp: fix typo in khugepaged_scan_pmd()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 25 Mar 2016 21:22:20 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Mar 2016 23:37:42 +0000 (16:37 -0700)
!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>
mm/huge_memory.c

index fbfb1b8d67260941b05ce7e6c8d04b81e65ee1d1..86f9f8b82f8ecfc47b92554e3a82501346b0fcb8 100644 (file)
@@ -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)) {