Lines Matching refs:internal_rwsem
137 struct rw_semaphore internal_rwsem; member
2095 __init_rwsem(&sem->internal_rwsem, sem_name, key); in __init_f2fs_rwsem()
2103 return rwsem_is_locked(&sem->internal_rwsem); in f2fs_rwsem_is_locked()
2108 return rwsem_is_contended(&sem->internal_rwsem); in f2fs_rwsem_is_contended()
2114 wait_event(sem->read_waiters, down_read_trylock(&sem->internal_rwsem)); in f2fs_down_read()
2116 down_read(&sem->internal_rwsem); in f2fs_down_read()
2122 return down_read_trylock(&sem->internal_rwsem); in f2fs_down_read_trylock()
2127 up_read(&sem->internal_rwsem); in f2fs_up_read()
2132 down_write(&sem->internal_rwsem); in f2fs_down_write()
2138 down_read_nested(&sem->internal_rwsem, subclass); in f2fs_down_read_nested()
2143 down_write_nested(&sem->internal_rwsem, subclass); in f2fs_down_write_nested()
2152 return down_write_trylock(&sem->internal_rwsem); in f2fs_down_write_trylock()
2157 up_write(&sem->internal_rwsem); in f2fs_up_write()