diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/memory.c b/mm/memory.c index d205e4381a34..5f5d1f039bf4 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -1577,12 +1577,12 @@ split_fallthrough: | |||
1577 | if (page->mapping && trylock_page(page)) { | 1577 | if (page->mapping && trylock_page(page)) { |
1578 | lru_add_drain(); /* push cached pages to LRU */ | 1578 | lru_add_drain(); /* push cached pages to LRU */ |
1579 | /* | 1579 | /* |
1580 | * Because we lock page here and migration is | 1580 | * Because we lock page here, and migration is |
1581 | * blocked by the pte's page reference, we need | 1581 | * blocked by the pte's page reference, and we |
1582 | * only check for file-cache page truncation. | 1582 | * know the page is still mapped, we don't even |
1583 | * need to check for file-cache page truncation. | ||
1583 | */ | 1584 | */ |
1584 | if (page->mapping) | 1585 | mlock_vma_page(page); |
1585 | mlock_vma_page(page); | ||
1586 | unlock_page(page); | 1586 | unlock_page(page); |
1587 | } | 1587 | } |
1588 | } | 1588 | } |