Lines Matching refs:file_lock_core
72 static struct file_lock *file_lock(struct file_lock_core *flc) in file_lock()
77 static struct file_lease *file_lease(struct file_lock_core *flc) in file_lease()
211 struct file_lock_core *flc; in locks_dump_ctx_list()
239 struct file_lock_core *flc; in locks_check_ctx_file_list()
263 static void locks_init_lock_heads(struct file_lock_core *flc) in locks_init_lock_heads()
298 struct file_lock_core *flc = &fl->c; in locks_release_private()
333 struct file_lock_core *flc; in locks_owner_has_blockers()
367 struct file_lock_core *flc; in locks_dispose_list()
370 flc = list_first_entry(dispose, struct file_lock_core, flc_list); in locks_dispose_list()
477 static int assign_type(struct file_lock_core *flc, int type) in assign_type()
630 static int posix_same_owner(struct file_lock_core *fl1, struct file_lock_core *fl2) in posix_same_owner()
636 static void locks_insert_global_locks(struct file_lock_core *flc) in locks_insert_global_locks()
649 static void locks_delete_global_locks(struct file_lock_core *flc) in locks_delete_global_locks()
670 posix_owner_key(struct file_lock_core *flc) in posix_owner_key()
675 static void locks_insert_global_blocked(struct file_lock_core *waiter) in locks_insert_global_blocked()
682 static void locks_delete_global_blocked(struct file_lock_core *waiter) in locks_delete_global_blocked()
694 static void __locks_unlink_block(struct file_lock_core *waiter) in __locks_unlink_block()
700 static void __locks_wake_up_blocks(struct file_lock_core *blocker) in __locks_wake_up_blocks()
703 struct file_lock_core *waiter; in __locks_wake_up_blocks()
707 struct file_lock_core, flc_blocked_member); in __locks_wake_up_blocks()
726 static int __locks_delete_block(struct file_lock_core *waiter) in __locks_delete_block()
797 static void __locks_insert_block(struct file_lock_core *blocker, in __locks_insert_block() argument
798 struct file_lock_core *waiter, in __locks_insert_block()
799 bool conflict(struct file_lock_core *, in __locks_insert_block() argument
800 struct file_lock_core *)) in __locks_insert_block()
802 struct file_lock_core *flc; in __locks_insert_block()
826 static void locks_insert_block(struct file_lock_core *blocker, in locks_insert_block() argument
827 struct file_lock_core *waiter, in locks_insert_block()
828 bool conflict(struct file_lock_core *, in locks_insert_block() argument
829 struct file_lock_core *)) in locks_insert_block()
841 static void locks_wake_up_blocks(struct file_lock_core *blocker) in locks_wake_up_blocks()
859 locks_insert_lock_ctx(struct file_lock_core *fl, struct list_head *before) in locks_insert_lock_ctx()
866 locks_unlink_lock_ctx(struct file_lock_core *fl) in locks_unlink_lock_ctx()
874 locks_delete_lock_ctx(struct file_lock_core *fl, struct list_head *dispose) in locks_delete_lock_ctx()
886 static bool locks_conflict(struct file_lock_core *caller_flc, in locks_conflict()
887 struct file_lock_core *sys_flc) in locks_conflict()
899 static bool posix_locks_conflict(struct file_lock_core *caller_flc, in posix_locks_conflict()
900 struct file_lock_core *sys_flc) in posix_locks_conflict()
924 struct file_lock_core *caller = &caller_fl->c; in posix_test_locks_conflict()
925 struct file_lock_core *sys = &sys_fl->c; in posix_test_locks_conflict()
939 static bool flock_locks_conflict(struct file_lock_core *caller_flc, in flock_locks_conflict()
940 struct file_lock_core *sys_flc) in flock_locks_conflict()
1027 static struct file_lock_core *what_owner_is_waiting_for(struct file_lock_core *blocker) in what_owner_is_waiting_for()
1029 struct file_lock_core *flc; in what_owner_is_waiting_for()
1045 struct file_lock_core *caller = &caller_fl->c; in posix_locks_deadlock()
1046 struct file_lock_core *blocker = &block_fl->c; in posix_locks_deadlock()
1490 static bool leases_conflict(struct file_lock_core *lc, struct file_lock_core *bc) in leases_conflict()
1518 struct file_lock_core *flc; in any_leases_conflict()
1660 struct file_lock_core *flc; in lease_get_mtime()
1666 struct file_lock_core, flc_list); in lease_get_mtime()
2215 static pid_t locks_translate_pid(struct file_lock_core *fl, struct pid_namespace *ns) in locks_translate_pid()
2762 static void lock_get_status(struct seq_file *f, struct file_lock_core *flc, in lock_get_status()
2838 static struct file_lock_core *get_next_blocked_member(struct file_lock_core *node) in get_next_blocked_member()
2840 struct file_lock_core *tmp; in get_next_blocked_member()
2860 struct file_lock_core *cur, *tmp; in locks_show()
2864 cur = hlist_entry(v, struct file_lock_core, flc_link); in locks_show()
2883 struct file_lock_core, in locks_show()
2906 struct file_lock_core *fl; in __show_fd_locks()