diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rmap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 80cd162a8aa6..5f981be61416 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
@@ -113,6 +113,16 @@ static inline void vma_unlock_anon_vma(struct vm_area_struct *vma) | |||
113 | spin_unlock(&anon_vma->lock); | 113 | spin_unlock(&anon_vma->lock); |
114 | } | 114 | } |
115 | 115 | ||
116 | static inline void anon_vma_lock(struct anon_vma *anon_vma) | ||
117 | { | ||
118 | spin_lock(&anon_vma->lock); | ||
119 | } | ||
120 | |||
121 | static inline void anon_vma_unlock(struct anon_vma *anon_vma) | ||
122 | { | ||
123 | spin_unlock(&anon_vma->lock); | ||
124 | } | ||
125 | |||
116 | /* | 126 | /* |
117 | * anon_vma helper functions. | 127 | * anon_vma helper functions. |
118 | */ | 128 | */ |