Lines Matching refs:sys_fl
543 static int locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl) in locks_conflict() argument
547 return (sys_fl->fl_type == F_WRLCK); in locks_conflict()
563 static int posix_locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl) in posix_locks_conflict() argument
568 if (!(sys_fl->fl_flags & FL_POSIX) || in posix_locks_conflict()
569 locks_same_owner(caller_fl, sys_fl)) in posix_locks_conflict()
573 if (!locks_overlap(caller_fl, sys_fl)) in posix_locks_conflict()
576 return (locks_conflict(caller_fl, sys_fl)); in posix_locks_conflict()
582 static int flock_locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl) in flock_locks_conflict() argument
587 if (!(sys_fl->fl_flags & FL_FLOCK) || in flock_locks_conflict()
588 (caller_fl->fl_file == sys_fl->fl_file)) in flock_locks_conflict()
591 if ((caller_fl->fl_type & LOCK_MAND) || (sys_fl->fl_type & LOCK_MAND)) in flock_locks_conflict()
595 return (locks_conflict(caller_fl, sys_fl)); in flock_locks_conflict()