Home
last modified time | relevance | path

Searched refs:mm_lock_seq (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/include/linux/
H A Dmmap_lock.h77 seqcount_init(&mm->mm_lock_seq); in mm_lock_seqcount_init()
82 do_raw_write_seqcount_begin(&mm->mm_lock_seq); in mm_lock_seqcount_begin()
87 ASSERT_EXCLUSIVE_WRITER(mm->mm_lock_seq); in mm_lock_seqcount_end()
88 do_raw_write_seqcount_end(&mm->mm_lock_seq); in mm_lock_seqcount_end()
99 return raw_seqcount_try_begin(&mm->mm_lock_seq, *seq); in mmap_lock_speculate_try_begin()
104 return read_seqcount_retry(&mm->mm_lock_seq, seq); in mmap_lock_speculate_retry()
H A Dmm.h732 if (READ_ONCE(vma->vm_lock_seq) == READ_ONCE(mm->mm_lock_seq.sequence)) in vma_start_read()
759 if (unlikely(vma->vm_lock_seq == raw_read_seqcount(&mm->mm_lock_seq))) { in vma_start_read()
811 *mm_lock_seq = vma->vm_mm->mm_lock_seq.sequence; in __is_vma_write_locked()
812 return (vma->vm_lock_seq == *mm_lock_seq); in __is_vma_write_locked()
824 unsigned int mm_lock_seq; in vma_start_write() local
826 if (__is_vma_write_locked(vma, &mm_lock_seq)) in vma_start_write()
829 __vma_start_write(vma, mm_lock_seq); in vma_start_write()
834 unsigned int mm_lock_seq; in vma_assert_write_locked() local
836 VM_BUG_ON_VMA(!__is_vma_write_locked(vma, &mm_lock_seq), vma); in vma_assert_write_locked()
841 unsigned int mm_lock_seq; in vma_assert_locked() local
[all …]
H A Dmm_types.h1032 seqcount_t mm_lock_seq; member
/linux-6.15/mm/
H A Dinit-mm.c44 .mm_lock_seq = SEQCNT_ZERO(init_mm.mm_lock_seq),
H A Dmemory.c6488 void __vma_start_write(struct vm_area_struct *vma, unsigned int mm_lock_seq) in __vma_start_write() argument
6505 WRITE_ONCE(vma->vm_lock_seq, mm_lock_seq); in __vma_start_write()
/linux-6.15/Documentation/mm/
H A Dprocess_addrs.rst768 If the mm sequence count, :c:member:`!mm->mm_lock_seq` is equal to the VMA
774 also increments :c:member:`!mm->mm_lock_seq` via