Searched refs:mm_lock_seq (Results 1 – 5 of 5) sorted by relevance
94 smp_store_release(&mm->mm_lock_seq, mm->mm_lock_seq + 1); in vma_end_write_all()
662 if (READ_ONCE(vma->vm_lock_seq) == READ_ONCE(vma->vm_mm->mm_lock_seq)) in vma_start_read()679 if (unlikely(vma->vm_lock_seq == smp_load_acquire(&vma->vm_mm->mm_lock_seq))) { in vma_start_read()694 static bool __is_vma_write_locked(struct vm_area_struct *vma, int *mm_lock_seq) in __is_vma_write_locked() argument702 *mm_lock_seq = vma->vm_mm->mm_lock_seq; in __is_vma_write_locked()703 return (vma->vm_lock_seq == *mm_lock_seq); in __is_vma_write_locked()713 int mm_lock_seq; in vma_start_write() local715 if (__is_vma_write_locked(vma, &mm_lock_seq)) in vma_start_write()725 WRITE_ONCE(vma->vm_lock_seq, mm_lock_seq); in vma_start_write()731 int mm_lock_seq; in vma_assert_write_locked() local733 VM_BUG_ON_VMA(!__is_vma_write_locked(vma, &mm_lock_seq), vma); in vma_assert_write_locked()
785 int mm_lock_seq; member
43 .mm_lock_seq = 0,
1268 mm->mm_lock_seq = 0; in mm_init()