Searched refs:internal_rwsem (Results 1 – 1 of 1) sorted by relevance
137 struct rw_semaphore internal_rwsem; member2095 __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()[all …]