Lines Matching refs:anon_name
356 static inline void anon_vma_name_get(struct anon_vma_name *anon_name) in anon_vma_name_get() argument
358 if (anon_name) in anon_vma_name_get()
359 kref_get(&anon_name->kref); in anon_vma_name_get()
362 static inline void anon_vma_name_put(struct anon_vma_name *anon_name) in anon_vma_name_put() argument
364 if (anon_name) in anon_vma_name_put()
365 kref_put(&anon_name->kref, anon_vma_name_free); in anon_vma_name_put()
369 struct anon_vma_name *anon_vma_name_reuse(struct anon_vma_name *anon_name) in anon_vma_name_reuse() argument
372 if (kref_read(&anon_name->kref) < REFCOUNT_MAX) { in anon_vma_name_reuse()
373 anon_vma_name_get(anon_name); in anon_vma_name_reuse()
374 return anon_name; in anon_vma_name_reuse()
377 return anon_vma_name_alloc(anon_name->name); in anon_vma_name_reuse()
383 struct anon_vma_name *anon_name = anon_vma_name(orig_vma); in dup_anon_vma_name() local
385 if (anon_name) in dup_anon_vma_name()
386 new_vma->anon_name = anon_vma_name_reuse(anon_name); in dup_anon_vma_name()
396 anon_vma_name_put(vma->anon_name); in free_anon_vma_name()
419 static inline void anon_vma_name_get(struct anon_vma_name *anon_name) {} in anon_vma_name_get() argument
420 static inline void anon_vma_name_put(struct anon_vma_name *anon_name) {} in anon_vma_name_put() argument