diff options
Diffstat (limited to 'mm/mlock.c')
-rw-r--r-- | mm/mlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mlock.c b/mm/mlock.c index 48691fb08514..adcbe9032b58 100644 --- a/mm/mlock.c +++ b/mm/mlock.c | |||
@@ -99,14 +99,14 @@ void mlock_vma_page(struct page *page) | |||
99 | * not get another chance to clear PageMlocked. If we successfully | 99 | * not get another chance to clear PageMlocked. If we successfully |
100 | * isolate the page and try_to_munlock() detects other VM_LOCKED vmas | 100 | * isolate the page and try_to_munlock() detects other VM_LOCKED vmas |
101 | * mapping the page, it will restore the PageMlocked state, unless the page | 101 | * mapping the page, it will restore the PageMlocked state, unless the page |
102 | * is mapped in a non-linear vma. So, we go ahead and SetPageMlocked(), | 102 | * is mapped in a non-linear vma. So, we go ahead and ClearPageMlocked(), |
103 | * perhaps redundantly. | 103 | * perhaps redundantly. |
104 | * If we lose the isolation race, and the page is mapped by other VM_LOCKED | 104 | * If we lose the isolation race, and the page is mapped by other VM_LOCKED |
105 | * vmas, we'll detect this in vmscan--via try_to_munlock() or try_to_unmap() | 105 | * vmas, we'll detect this in vmscan--via try_to_munlock() or try_to_unmap() |
106 | * either of which will restore the PageMlocked state by calling | 106 | * either of which will restore the PageMlocked state by calling |
107 | * mlock_vma_page() above, if it can grab the vma's mmap sem. | 107 | * mlock_vma_page() above, if it can grab the vma's mmap sem. |
108 | */ | 108 | */ |
109 | static void munlock_vma_page(struct page *page) | 109 | void munlock_vma_page(struct page *page) |
110 | { | 110 | { |
111 | BUG_ON(!PageLocked(page)); | 111 | BUG_ON(!PageLocked(page)); |
112 | 112 | ||