aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/rmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index f0ef7ea5423a..c6044761617e 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -323,7 +323,7 @@ void __init anon_vma_init(void)
323 * Getting a lock on a stable anon_vma from a page off the LRU is 323 * Getting a lock on a stable anon_vma from a page off the LRU is
324 * tricky: page_lock_anon_vma rely on RCU to guard against the races. 324 * tricky: page_lock_anon_vma rely on RCU to guard against the races.
325 */ 325 */
326struct anon_vma *__page_lock_anon_vma(struct page *page) 326struct anon_vma *page_lock_anon_vma(struct page *page)
327{ 327{
328 struct anon_vma *anon_vma, *root_anon_vma; 328 struct anon_vma *anon_vma, *root_anon_vma;
329 unsigned long anon_mapping; 329 unsigned long anon_mapping;
@@ -357,8 +357,6 @@ out:
357} 357}
358 358
359void page_unlock_anon_vma(struct anon_vma *anon_vma) 359void page_unlock_anon_vma(struct anon_vma *anon_vma)
360 __releases(&anon_vma->root->lock)
361 __releases(RCU)
362{ 360{
363 anon_vma_unlock(anon_vma); 361 anon_vma_unlock(anon_vma);
364 rcu_read_unlock(); 362 rcu_read_unlock();