Lines Matching refs:mmap_lock
12 .mmap_lock = __RWSEM_INITIALIZER((name).mmap_lock),
65 init_rwsem(&mm->mmap_lock); in mmap_init_lock()
71 down_write(&mm->mmap_lock); in mmap_write_lock()
78 down_write_nested(&mm->mmap_lock, subclass); in mmap_write_lock_nested()
87 ret = down_write_killable(&mm->mmap_lock); in mmap_write_lock_killable()
97 ret = down_write_trylock(&mm->mmap_lock) != 0; in mmap_write_trylock()
105 up_write(&mm->mmap_lock); in mmap_write_unlock()
111 downgrade_write(&mm->mmap_lock); in mmap_write_downgrade()
117 down_read(&mm->mmap_lock); in mmap_read_lock()
126 ret = down_read_killable(&mm->mmap_lock); in mmap_read_lock_killable()
136 ret = down_read_trylock(&mm->mmap_lock) != 0; in mmap_read_trylock()
144 up_read(&mm->mmap_lock); in mmap_read_unlock()
150 up_read_non_owner(&mm->mmap_lock); in mmap_read_unlock_non_owner()
155 lockdep_assert_held(&mm->mmap_lock); in mmap_assert_locked()
156 VM_BUG_ON_MM(!rwsem_is_locked(&mm->mmap_lock), mm); in mmap_assert_locked()
161 lockdep_assert_held_write(&mm->mmap_lock); in mmap_assert_write_locked()
162 VM_BUG_ON_MM(!rwsem_is_locked(&mm->mmap_lock), mm); in mmap_assert_write_locked()
167 return rwsem_is_contended(&mm->mmap_lock); in mmap_lock_is_contended()