Lines Matching full:detached
57 * If vma is detached then only vma_mark_attached() can raise the in __vma_enter_locked()
72 static inline void __vma_exit_locked(struct vm_area_struct *vma, bool *detached) in __vma_exit_locked() argument
74 *detached = refcount_sub_and_test(VMA_LOCK_OFFSET, &vma->vm_refcnt); in __vma_exit_locked()
98 bool detached; in __vma_start_write() local
100 __vma_exit_locked(vma, &detached); in __vma_start_write()
101 WARN_ON_ONCE(detached); /* vma should remain attached */ in __vma_start_write()
120 /* Wait until vma is detached with no readers. */ in vma_mark_detached()
122 bool detached; in vma_mark_detached() local
124 __vma_exit_locked(vma, &detached); in vma_mark_detached()
125 WARN_ON_ONCE(!detached); in vma_mark_detached()
225 * Retry immediately if the vma gets detached from under us. in lock_next_vma()