Lines Matching refs:caller
862 int posix_lock_file(struct file *filp, struct file_lock *caller, in posix_lock_file() argument
884 if (caller->fl_type != F_UNLCK) { in posix_lock_file()
889 if (!posix_locks_conflict(caller, fl)) in posix_lock_file()
895 if (posix_locks_deadlock(caller, fl)) in posix_lock_file()
898 error = locks_block_on(fl, caller); in posix_lock_file()
917 !locks_same_owner(caller, fl))) { in posix_lock_file()
923 while ((fl = *before) && locks_same_owner(caller, fl)) { in posix_lock_file()
926 if (caller->fl_type == fl->fl_type) { in posix_lock_file()
927 if (fl->fl_end < caller->fl_start - 1) in posix_lock_file()
932 if (fl->fl_start > caller->fl_end + 1) in posix_lock_file()
940 if (fl->fl_start > caller->fl_start) in posix_lock_file()
941 fl->fl_start = caller->fl_start; in posix_lock_file()
943 caller->fl_start = fl->fl_start; in posix_lock_file()
944 if (fl->fl_end < caller->fl_end) in posix_lock_file()
945 fl->fl_end = caller->fl_end; in posix_lock_file()
947 caller->fl_end = fl->fl_end; in posix_lock_file()
952 caller = fl; in posix_lock_file()
959 if (fl->fl_end < caller->fl_start) in posix_lock_file()
961 if (fl->fl_start > caller->fl_end) in posix_lock_file()
963 if (caller->fl_type == F_UNLCK) in posix_lock_file()
965 if (fl->fl_start < caller->fl_start) in posix_lock_file()
970 if (fl->fl_end > caller->fl_end) { in posix_lock_file()
974 if (fl->fl_start >= caller->fl_start) { in posix_lock_file()
988 fl->fl_start = caller->fl_start; in posix_lock_file()
989 fl->fl_end = caller->fl_end; in posix_lock_file()
990 fl->fl_type = caller->fl_type; in posix_lock_file()
991 fl->fl_u = caller->fl_u; in posix_lock_file()
992 caller = fl; in posix_lock_file()
1004 if (caller->fl_type == F_UNLCK) in posix_lock_file()
1006 locks_copy_lock(new_fl, caller); in posix_lock_file()
1020 right->fl_start = caller->fl_end + 1; in posix_lock_file()
1024 left->fl_end = caller->fl_start - 1; in posix_lock_file()