Lines Matching refs:internal_rwsem
135 struct rw_semaphore internal_rwsem; member
2159 __init_rwsem(&sem->internal_rwsem, sem_name, key); in __init_f2fs_rwsem()
2167 return rwsem_is_locked(&sem->internal_rwsem); in f2fs_rwsem_is_locked()
2172 return rwsem_is_contended(&sem->internal_rwsem); in f2fs_rwsem_is_contended()
2178 wait_event(sem->read_waiters, down_read_trylock(&sem->internal_rwsem)); in f2fs_down_read()
2180 down_read(&sem->internal_rwsem); in f2fs_down_read()
2186 return down_read_trylock(&sem->internal_rwsem); in f2fs_down_read_trylock()
2192 down_read_nested(&sem->internal_rwsem, subclass); in f2fs_down_read_nested()
2200 up_read(&sem->internal_rwsem); in f2fs_up_read()
2205 down_write(&sem->internal_rwsem); in f2fs_down_write()
2210 return down_write_trylock(&sem->internal_rwsem); in f2fs_down_write_trylock()
2215 up_write(&sem->internal_rwsem); in f2fs_up_write()