Lines Matching refs:anon_name
377 static inline void anon_vma_name_get(struct anon_vma_name *anon_name) in anon_vma_name_get() argument
379 if (anon_name) in anon_vma_name_get()
380 kref_get(&anon_name->kref); in anon_vma_name_get()
383 static inline void anon_vma_name_put(struct anon_vma_name *anon_name) in anon_vma_name_put() argument
385 if (anon_name) in anon_vma_name_put()
386 kref_put(&anon_name->kref, anon_vma_name_free); in anon_vma_name_put()
390 struct anon_vma_name *anon_vma_name_reuse(struct anon_vma_name *anon_name) in anon_vma_name_reuse() argument
393 if (kref_read(&anon_name->kref) < REFCOUNT_MAX) { in anon_vma_name_reuse()
394 anon_vma_name_get(anon_name); in anon_vma_name_reuse()
395 return anon_name; in anon_vma_name_reuse()
398 return anon_vma_name_alloc(anon_name->name); in anon_vma_name_reuse()
404 struct anon_vma_name *anon_name = anon_vma_name(orig_vma); in dup_anon_vma_name() local
406 if (anon_name) in dup_anon_vma_name()
407 new_vma->anon_name = anon_vma_name_reuse(anon_name); in dup_anon_vma_name()
416 anon_vma_name_put(vma->anon_name); in free_anon_vma_name()
440 static inline void anon_vma_name_get(struct anon_vma_name *anon_name) {} in anon_vma_name_get() argument
441 static inline void anon_vma_name_put(struct anon_vma_name *anon_name) {} in anon_vma_name_put() argument