| /fs/bcachefs/ |
| A D | six.c | 98 static inline unsigned pcpu_read_count(struct six_lock *lock) in pcpu_read_count() 265 static void six_lock_wakeup(struct six_lock *lock, u32 state, in six_lock_wakeup() 335 static inline bool six_owner_running(struct six_lock *lock) in six_owner_running() 347 static inline bool six_optimistic_spin(struct six_lock *lock, in six_optimistic_spin() 397 static inline bool six_optimistic_spin(struct six_lock *lock, in six_optimistic_spin() 642 void six_lock_downgrade(struct six_lock *lock) in six_lock_downgrade() 658 bool six_lock_tryupgrade(struct six_lock *lock) in six_lock_tryupgrade() 696 bool six_trylock_convert(struct six_lock *lock, in six_trylock_convert() 763 void six_lock_wakeup_all(struct six_lock *lock) in six_lock_wakeup_all() 820 void six_lock_readers_add(struct six_lock *lock, int nr) in six_lock_readers_add() [all …]
|
| A D | seqmutex.h | 8 struct mutex lock; member 14 static inline bool seqmutex_trylock(struct seqmutex *lock) in seqmutex_trylock() 19 static inline void seqmutex_lock(struct seqmutex *lock) in seqmutex_lock() 25 static inline u32 seqmutex_unlock(struct seqmutex *lock) in seqmutex_unlock() 32 static inline bool seqmutex_relock(struct seqmutex *lock, u32 seq) in seqmutex_relock()
|
| A D | six.h | 175 #define six_lock_init(lock, flags, gfp) \ argument 193 static inline u32 six_lock_seq(const struct six_lock *lock) in six_lock_seq() 207 static inline bool six_trylock_type(struct six_lock *lock, enum six_lock_type type) in six_trylock_type() 231 static inline int six_lock_waiter(struct six_lock *lock, enum six_lock_type type, in six_lock_waiter() 249 static inline int six_lock_ip(struct six_lock *lock, enum six_lock_type type, in six_lock_ip() 268 static inline int six_lock_type(struct six_lock *lock, enum six_lock_type type, in six_lock_type() 288 static inline bool six_relock_type(struct six_lock *lock, enum six_lock_type type, in six_relock_type() 310 static inline void six_unlock_type(struct six_lock *lock, enum six_lock_type type) in six_unlock_type()
|
| A D | two_state_shared_lock.h | 20 static inline void two_state_lock_init(two_state_lock_t *lock) in two_state_lock_init() 26 static inline void bch2_two_state_unlock(two_state_lock_t *lock, int s) in bch2_two_state_unlock() 36 static inline bool bch2_two_state_trylock(two_state_lock_t *lock, int s) in bch2_two_state_trylock() 52 static inline void bch2_two_state_lock(two_state_lock_t *lock, int s) in bch2_two_state_lock()
|
| A D | two_state_shared_lock.c | 5 void __bch2_two_state_lock(two_state_lock_t *lock, int s) in __bch2_two_state_lock()
|
| A D | nocow_locking_types.h | 10 spinlock_t lock; member
|
| A D | thread_with_file_types.h | 8 spinlock_t lock; member
|
| A D | buckets_waiting_for_journal_types.h | 19 struct mutex lock; member
|
| /fs/ocfs2/dlm/ |
| A D | dlmast.c | 47 static int dlm_should_cancel_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_should_cancel_bast() 74 void __dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in __dlm_queue_ast() 129 void dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_queue_ast() 140 void __dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in __dlm_queue_bast() 167 struct dlm_lock *lock) in dlm_update_lvb() 197 struct dlm_lock *lock) in dlm_do_local_ast() 215 struct dlm_lock *lock) in dlm_do_remote_ast() 239 struct dlm_lock *lock, int blocked_type) in dlm_do_local_bast() 263 struct dlm_lock *lock = NULL; in dlm_proxy_ast_handler() local 422 struct dlm_lock *lock, int msg_type, in dlm_send_proxy_ast_msg()
|
| A D | dlmlock.c | 74 struct dlm_lock *lock) in dlm_can_grant_new_lock() 103 struct dlm_lock *lock, int flags) in dlmlock_master() 182 struct dlm_lock *lock) in dlm_revert_pending_lock() 199 struct dlm_lock *lock, int flags) in dlmlock_remote() 285 struct dlm_lock *lock, int flags) in dlm_send_remote_lock_request() 324 void dlm_lock_get(struct dlm_lock *lock) in dlm_lock_get() 329 void dlm_lock_put(struct dlm_lock *lock) in dlm_lock_put() 336 struct dlm_lock *lock; in dlm_lock_release() local 356 void dlm_lock_attach_lockres(struct dlm_lock *lock, in dlm_lock_attach_lockres() 408 struct dlm_lock *lock; in dlm_new_lock() local [all …]
|
| A D | dlmunlock.c | 83 struct dlm_lock *lock, in dlmunlock_common() 266 struct dlm_lock *lock) in dlm_commit_pending_unlock() 274 struct dlm_lock *lock) in dlm_commit_pending_cancel() 283 struct dlm_lock *lock, in dlmunlock_master() 293 struct dlm_lock *lock, in dlmunlock_remote() 309 struct dlm_lock *lock, in dlm_send_remote_unlock_request() 395 struct dlm_lock *lock = NULL, *iter; in dlm_unlock_lock_handler() local 527 struct dlm_lock *lock, in dlm_get_cancel_actions() 559 struct dlm_lock *lock, in dlm_get_unlock_actions() 589 struct dlm_lock *lock = NULL; in dlmunlock() local
|
| A D | dlmconvert.c | 61 struct dlm_lock *lock, int flags, int type) in dlmconvert_master() 104 struct dlm_lock *lock, int flags, in __dlmconvert_master() 234 struct dlm_lock *lock) in dlm_revert_pending_convert() 251 struct dlm_lock *lock, int flags, int type) in dlmconvert_remote() 355 struct dlm_lock *lock, int flags, int type) in dlm_send_remote_convert_request() 435 struct dlm_lock *lock = NULL; in dlm_convert_lock_handler() local
|
| A D | dlmrecovery.c | 1038 struct dlm_lock *lock; in dlm_move_reco_locks_to_list() local 1170 static void dlm_prepare_lvb_for_migration(struct dlm_lock *lock, in dlm_prepare_lvb_for_migration() 1206 static int dlm_add_lock_to_array(struct dlm_lock *lock, in dlm_add_lock_to_array() 1266 struct dlm_lock *lock; in dlm_send_one_lockres() local 1797 struct dlm_lock *lock; in dlm_process_recovery_data() local 2048 struct dlm_lock *lock, *next; in dlm_move_lockres_to_recovery_list() local 2197 static inline int dlm_lvb_needs_invalidation(struct dlm_lock *lock, int local) in dlm_lvb_needs_invalidation() 2212 struct dlm_lock *lock; in dlm_revalidate_lvb() local 2254 struct dlm_lock *lock, *next; in dlm_free_dead_locks() local 2325 struct dlm_lock *lock; in dlm_do_local_recovery_cleanup() local
|
| A D | dlmdebug.c | 58 static void __dlm_print_lock(struct dlm_lock *lock) in __dlm_print_lock() 83 struct dlm_lock *lock; in __dlm_print_one_lock_resource() local 410 static int dump_lock(struct dlm_lock *lock, int list_type, char *buf, int len) in dump_lock() 436 struct dlm_lock *lock; in dump_lockres() local
|
| A D | dlmthread.c | 343 struct dlm_lock *lock, *target; in dlm_shuffle_lists() local 572 struct dlm_lock *lock; in dlm_flush_asts() local
|
| /fs/btrfs/ |
| A D | locking.h | 104 #define btrfs_might_wait_for_event(owner, lock) \ argument 121 #define btrfs_lockdep_acquire(owner, lock) \ argument 128 #define btrfs_lockdep_release(owner, lock) \ argument 135 #define btrfs_lockdep_inode_acquire(owner, lock) \ argument 138 #define btrfs_lockdep_inode_release(owner, lock) \ argument 158 #define btrfs_lockdep_init_map(owner, lock) \ argument 165 #define btrfs_state_lockdep_init_map(owner, lock, state) \ argument
|
| A D | locking.c | 314 void btrfs_drew_lock_init(struct btrfs_drew_lock *lock) in btrfs_drew_lock_init() 323 bool btrfs_drew_try_write_lock(struct btrfs_drew_lock *lock) in btrfs_drew_try_write_lock() 340 void btrfs_drew_write_lock(struct btrfs_drew_lock *lock) in btrfs_drew_write_lock() 349 void btrfs_drew_write_unlock(struct btrfs_drew_lock *lock) in btrfs_drew_write_unlock() 359 void btrfs_drew_read_lock(struct btrfs_drew_lock *lock) in btrfs_drew_read_lock() 374 void btrfs_drew_read_unlock(struct btrfs_drew_lock *lock) in btrfs_drew_read_unlock()
|
| /fs/lockd/ |
| A D | svclock.c | 146 nlmsvc_lookup_block(struct nlm_file *file, struct nlm_lock *lock) in nlmsvc_lookup_block() 225 struct nlm_file *file, struct nlm_lock *lock, in nlmsvc_create_block() 403 nlmsvc_release_lockowner(struct nlm_lock *lock) in nlmsvc_release_lockowner() 419 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock) in nlmsvc_setgrantargs() 480 struct nlm_host *host, struct nlm_lock *lock, int wait, in nlmsvc_lock() 610 struct nlm_host *host, struct nlm_lock *lock, in nlmsvc_testlock() 670 nlmsvc_unlock(struct net *net, struct nlm_file *file, struct nlm_lock *lock) in nlmsvc_unlock() 705 nlmsvc_cancel_blocked(struct net *net, struct nlm_file *file, struct nlm_lock *lock) in nlmsvc_cancel_blocked() 843 struct nlm_lock *lock = &block->b_call->a_args.lock; in nlmsvc_grant_blocked() local
|
| A D | clnt4xdr.c | 65 static void nlm4_compute_offsets(const struct nlm_lock *lock, in nlm4_compute_offsets() 242 const struct nlm_lock *lock = &result->lock; in encode_nlm4_holder() local 258 struct nlm_lock *lock = &result->lock; in decode_nlm4_holder() local 319 const struct nlm_lock *lock) in encode_nlm4_lock() 357 const struct nlm_lock *lock = &args->lock; in nlm4_xdr_enc_testargs() local 379 const struct nlm_lock *lock = &args->lock; in nlm4_xdr_enc_lockargs() local 402 const struct nlm_lock *lock = &args->lock; in nlm4_xdr_enc_cancargs() local 421 const struct nlm_lock *lock = &args->lock; in nlm4_xdr_enc_unlockargs() local
|
| A D | clntxdr.c | 62 static void nlm_compute_offsets(const struct nlm_lock *lock, in nlm_compute_offsets() 238 const struct nlm_lock *lock = &result->lock; in encode_nlm_holder() local 254 struct nlm_lock *lock = &result->lock; in decode_nlm_holder() local 321 const struct nlm_lock *lock) in encode_nlm_lock() 358 const struct nlm_lock *lock = &args->lock; in nlm_xdr_enc_testargs() local 380 const struct nlm_lock *lock = &args->lock; in nlm_xdr_enc_lockargs() local 403 const struct nlm_lock *lock = &args->lock; in nlm_xdr_enc_cancargs() local 422 const struct nlm_lock *lock = &args->lock; in nlm_xdr_enc_unlockargs() local
|
| A D | xdr.c | 72 svcxdr_decode_lock(struct xdr_stream *xdr, struct nlm_lock *lock) in svcxdr_decode_lock() 104 svcxdr_encode_holder(struct xdr_stream *xdr, const struct nlm_lock *lock) in svcxdr_encode_holder() 274 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_shareargs() local 301 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_notify() local
|
| A D | xdr4.c | 74 svcxdr_decode_lock(struct xdr_stream *xdr, struct nlm_lock *lock) in svcxdr_decode_lock() 98 svcxdr_encode_holder(struct xdr_stream *xdr, const struct nlm_lock *lock) in svcxdr_encode_holder() 268 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_shareargs() local 294 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_notify() local
|
| A D | svcsubs.c | 74 int lock_to_openmode(struct file_lock *lock) in lock_to_openmode() 106 struct nlm_lock *lock) in nlm_lookup_file() 181 struct file_lock lock; in nlm_unlock_files() local
|
| /fs/nilfs2/ |
| A D | alloc.c | 145 spinlock_t *lock) in nilfs_palloc_group_desc_nfrees() 166 spinlock_t *lock, u32 n) in nilfs_palloc_group_desc_add_entries() 225 spinlock_t *lock) in nilfs_palloc_get_block() 270 spinlock_t *lock) in nilfs_palloc_delete_block() 443 spinlock_t *lock, bool wrap) in nilfs_palloc_find_available_slot() 592 spinlock_t *lock; in nilfs_palloc_prepare_alloc_entry() local 698 spinlock_t *lock; in nilfs_palloc_commit_free_entry() local 739 spinlock_t *lock; in nilfs_palloc_abort_alloc_entry() local 832 spinlock_t *lock; in nilfs_palloc_freev() local
|
| /fs/ceph/ |
| A D | locks.c | 380 struct file_lock *lock; in ceph_count_locks() local 403 struct file_lock *lock, in lock_to_ceph_filelock() 443 struct file_lock *lock; in ceph_encode_locks_to_buffer() local
|