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()
221 struct file_lock_core *flc; in locks_dump_ctx_list()
249 struct file_lock_core *flc; in locks_check_ctx_file_list()
273 static void locks_init_lock_heads(struct file_lock_core *flc) in locks_init_lock_heads()
308 struct file_lock_core *flc = &fl->c; in locks_release_private()
343 struct file_lock_core *flc; in locks_owner_has_blockers()
377 struct file_lock_core *flc; in locks_dispose_list()
380 flc = list_first_entry(dispose, struct file_lock_core, flc_list); in locks_dispose_list()
389 struct file_lock_core *flc; in lease_dispose_list()
392 flc = list_first_entry(dispose, struct file_lock_core, flc_list); in lease_dispose_list()
496 static int assign_type(struct file_lock_core *flc, int type) in assign_type()
689 static int posix_same_owner(struct file_lock_core *fl1, struct file_lock_core *fl2) in posix_same_owner()
695 static void locks_insert_global_locks(struct file_lock_core *flc) in locks_insert_global_locks()
708 static void locks_delete_global_locks(struct file_lock_core *flc) in locks_delete_global_locks()
729 posix_owner_key(struct file_lock_core *flc) in posix_owner_key()
734 static void locks_insert_global_blocked(struct file_lock_core *waiter) in locks_insert_global_blocked()
741 static void locks_delete_global_blocked(struct file_lock_core *waiter) in locks_delete_global_blocked()
753 static void __locks_unlink_block(struct file_lock_core *waiter) in __locks_unlink_block()
759 static void __locks_wake_up_blocks(struct file_lock_core *blocker) in __locks_wake_up_blocks()
762 struct file_lock_core *waiter; in __locks_wake_up_blocks()
766 struct file_lock_core, flc_blocked_member); in __locks_wake_up_blocks()
785 static int __locks_delete_block(struct file_lock_core *waiter) in __locks_delete_block()
856 static void __locks_insert_block(struct file_lock_core *blocker, in __locks_insert_block() argument
857 struct file_lock_core *waiter, in __locks_insert_block()
858 bool conflict(struct file_lock_core *, in __locks_insert_block() argument
859 struct file_lock_core *)) in __locks_insert_block()
861 struct file_lock_core *flc; in __locks_insert_block()
885 static void locks_insert_block(struct file_lock_core *blocker, in locks_insert_block() argument
886 struct file_lock_core *waiter, in locks_insert_block()
887 bool conflict(struct file_lock_core *, in locks_insert_block() argument
888 struct file_lock_core *)) in locks_insert_block()
900 static void locks_wake_up_blocks(struct file_lock_core *blocker) in locks_wake_up_blocks()
918 locks_insert_lock_ctx(struct file_lock_core *fl, struct list_head *before) in locks_insert_lock_ctx()
925 locks_unlink_lock_ctx(struct file_lock_core *fl) in locks_unlink_lock_ctx()
933 locks_delete_lock_ctx(struct file_lock_core *fl, struct list_head *dispose) in locks_delete_lock_ctx()
945 static bool locks_conflict(struct file_lock_core *caller_flc, in locks_conflict()
946 struct file_lock_core *sys_flc) in locks_conflict()
958 static bool posix_locks_conflict(struct file_lock_core *caller_flc, in posix_locks_conflict()
959 struct file_lock_core *sys_flc) in posix_locks_conflict()
983 struct file_lock_core *caller = &caller_fl->c; in posix_test_locks_conflict()
984 struct file_lock_core *sys = &sys_fl->c; in posix_test_locks_conflict()
998 static bool flock_locks_conflict(struct file_lock_core *caller_flc, in flock_locks_conflict()
999 struct file_lock_core *sys_flc) in flock_locks_conflict()
1086 static struct file_lock_core *what_owner_is_waiting_for(struct file_lock_core *blocker) in what_owner_is_waiting_for()
1088 struct file_lock_core *flc; in what_owner_is_waiting_for()
1104 struct file_lock_core *caller = &caller_fl->c; in posix_locks_deadlock()
1105 struct file_lock_core *blocker = &block_fl->c; in posix_locks_deadlock()
1549 static bool leases_conflict(struct file_lock_core *lc, struct file_lock_core *bc) in leases_conflict()
1577 struct file_lock_core *flc; in any_leases_conflict()
1725 struct file_lock_core *flc; in lease_get_mtime()
1731 struct file_lock_core, flc_list); in lease_get_mtime()
2292 static pid_t locks_translate_pid(struct file_lock_core *fl, struct pid_namespace *ns) in locks_translate_pid()
2839 static void lock_get_status(struct seq_file *f, struct file_lock_core *flc, in lock_get_status()
2915 static struct file_lock_core *get_next_blocked_member(struct file_lock_core *node) in get_next_blocked_member()
2917 struct file_lock_core *tmp; in get_next_blocked_member()
2937 struct file_lock_core *cur, *tmp; in locks_show()
2941 cur = hlist_entry(v, struct file_lock_core, flc_link); in locks_show()
2960 struct file_lock_core, in locks_show()
2983 struct file_lock_core *fl; in __show_fd_locks()