mm: pagewalk: call pte_hole() for VM_PFNMAP during walk_page_range
[firefly-linux-kernel-4.4.55.git] / mm / mlock.c
index 79b7cf7d1bca72cee9babfb60e21a38799c8eba1..713e462c077637664c80287ab6e864ff54b2eaab 100644 (file)
@@ -76,6 +76,7 @@ void clear_page_mlock(struct page *page)
  */
 void mlock_vma_page(struct page *page)
 {
+       /* Serialize with page migration */
        BUG_ON(!PageLocked(page));
 
        if (!TestSetPageMlocked(page)) {
@@ -106,6 +107,7 @@ unsigned int munlock_vma_page(struct page *page)
 {
        unsigned int page_mask = 0;
 
+       /* For try_to_munlock() and to serialize with page migration */
        BUG_ON(!PageLocked(page));
 
        if (TestClearPageMlocked(page)) {