• Home
  • Raw
  • Download

Lines Matching refs:anon_vma

33 struct anon_vma {  struct
34 struct anon_vma *root; /* Root of this anon_vma tree */ argument
47 struct anon_vma *parent; /* Parent of this anon_vma */ argument
96 struct anon_vma *anon_vma; member
118 static inline void get_anon_vma(struct anon_vma *anon_vma) in get_anon_vma() argument
120 atomic_inc(&anon_vma->refcount); in get_anon_vma()
123 void __put_anon_vma(struct anon_vma *anon_vma);
125 static inline void put_anon_vma(struct anon_vma *anon_vma) in put_anon_vma() argument
127 if (atomic_dec_and_test(&anon_vma->refcount)) in put_anon_vma()
128 __put_anon_vma(anon_vma); in put_anon_vma()
131 static inline void anon_vma_lock_write(struct anon_vma *anon_vma) in anon_vma_lock_write() argument
133 down_write(&anon_vma->root->rwsem); in anon_vma_lock_write()
136 static inline void anon_vma_unlock_write(struct anon_vma *anon_vma) in anon_vma_unlock_write() argument
138 up_write(&anon_vma->root->rwsem); in anon_vma_unlock_write()
141 static inline void anon_vma_lock_read(struct anon_vma *anon_vma) in anon_vma_lock_read() argument
143 down_read(&anon_vma->root->rwsem); in anon_vma_lock_read()
146 static inline int anon_vma_trylock_read(struct anon_vma *anon_vma) in anon_vma_trylock_read() argument
148 return down_read_trylock(&anon_vma->root->rwsem); in anon_vma_trylock_read()
151 static inline void anon_vma_unlock_read(struct anon_vma *anon_vma) in anon_vma_unlock_read() argument
153 up_read(&anon_vma->root->rwsem); in anon_vma_unlock_read()
168 if (likely(vma->anon_vma)) in anon_vma_prepare()
177 VM_BUG_ON_VMA(vma->anon_vma != next->anon_vma, vma); in anon_vma_merge()
181 struct anon_vma *page_get_anon_vma(struct page *page);
299 struct anon_vma *(*anon_lock)(struct page *page,
310 struct anon_vma *page_lock_anon_vma_read(struct page *page,
312 void page_unlock_anon_vma_read(struct anon_vma *anon_vma);