diff options
-rw-r--r-- | include/linux/rmap.h | 3 | ||||
-rw-r--r-- | mm/rmap.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 89f0564b10c8..3593b18a07dd 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
@@ -63,9 +63,6 @@ void anon_vma_unlink(struct vm_area_struct *); | |||
63 | void anon_vma_link(struct vm_area_struct *); | 63 | void anon_vma_link(struct vm_area_struct *); |
64 | void __anon_vma_link(struct vm_area_struct *); | 64 | void __anon_vma_link(struct vm_area_struct *); |
65 | 65 | ||
66 | extern struct anon_vma *page_lock_anon_vma(struct page *page); | ||
67 | extern void page_unlock_anon_vma(struct anon_vma *anon_vma); | ||
68 | |||
69 | /* | 66 | /* |
70 | * rmap interfaces called when adding or removing pte of page | 67 | * rmap interfaces called when adding or removing pte of page |
71 | */ | 68 | */ |
@@ -193,7 +193,7 @@ void __init anon_vma_init(void) | |||
193 | * Getting a lock on a stable anon_vma from a page off the LRU is | 193 | * Getting a lock on a stable anon_vma from a page off the LRU is |
194 | * tricky: page_lock_anon_vma rely on RCU to guard against the races. | 194 | * tricky: page_lock_anon_vma rely on RCU to guard against the races. |
195 | */ | 195 | */ |
196 | struct anon_vma *page_lock_anon_vma(struct page *page) | 196 | static struct anon_vma *page_lock_anon_vma(struct page *page) |
197 | { | 197 | { |
198 | struct anon_vma *anon_vma; | 198 | struct anon_vma *anon_vma; |
199 | unsigned long anon_mapping; | 199 | unsigned long anon_mapping; |
@@ -213,7 +213,7 @@ out: | |||
213 | return NULL; | 213 | return NULL; |
214 | } | 214 | } |
215 | 215 | ||
216 | void page_unlock_anon_vma(struct anon_vma *anon_vma) | 216 | static void page_unlock_anon_vma(struct anon_vma *anon_vma) |
217 | { | 217 | { |
218 | spin_unlock(&anon_vma->lock); | 218 | spin_unlock(&anon_vma->lock); |
219 | rcu_read_unlock(); | 219 | rcu_read_unlock(); |