• Home
  • Raw
  • Download

Lines Matching refs:fl

148 	struct file_lock	*fl;  in nlmsvc_lookup_block()  local
151 file, lock->fl.fl_pid, in nlmsvc_lookup_block()
152 (long long)lock->fl.fl_start, in nlmsvc_lookup_block()
153 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block()
155 fl = &block->b_call->a_args.lock.fl; in nlmsvc_lookup_block()
157 block->b_file, fl->fl_pid, in nlmsvc_lookup_block()
158 (long long)fl->fl_start, in nlmsvc_lookup_block()
159 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block()
161 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) { in nlmsvc_lookup_block()
239 call->a_args.lock.fl.fl_flags |= FL_SLEEP; in nlmsvc_create_block()
240 call->a_args.lock.fl.fl_lmops = &nlmsvc_lock_operations; in nlmsvc_create_block()
279 status = locks_delete_block(&block->b_call->a_args.lock.fl); in nlmsvc_unlink_block()
394 if (lock->fl.fl_owner) in nlmsvc_release_lockowner()
395 nlmsvc_put_lockowner(lock->fl.fl_owner); in nlmsvc_release_lockowner()
398 static void nlmsvc_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmsvc_locks_copy_lock() argument
400 struct nlm_lockowner *nlm_lo = (struct nlm_lockowner *)fl->fl_owner; in nlmsvc_locks_copy_lock()
404 static void nlmsvc_locks_release_private(struct file_lock *fl) in nlmsvc_locks_release_private() argument
406 nlmsvc_put_lockowner((struct nlm_lockowner *)fl->fl_owner); in nlmsvc_locks_release_private()
414 void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host, in nlmsvc_locks_init_private() argument
417 fl->fl_owner = nlmsvc_find_lockowner(host, pid); in nlmsvc_locks_init_private()
418 if (fl->fl_owner != NULL) in nlmsvc_locks_init_private()
419 fl->fl_ops = &nlmsvc_lock_ops; in nlmsvc_locks_init_private()
428 locks_copy_lock(&call->a_args.lock.fl, &lock->fl); in nlmsvc_setgrantargs()
435 call->a_args.lock.svid = ((struct nlm_lockowner *)lock->fl.fl_owner)->pid; in nlmsvc_setgrantargs()
453 locks_release_private(&call->a_args.lock.fl); in nlmsvc_freegrantargs()
497 lock->fl.fl_type, lock->fl.fl_pid, in nlmsvc_lock()
498 (long long)lock->fl.fl_start, in nlmsvc_lock()
499 (long long)lock->fl.fl_end, in nlmsvc_lock()
515 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_lock()
544 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_lock()
545 error = vfs_lock_file(file->f_file, F_SETLK, &lock->fl, NULL); in nlmsvc_lock()
546 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_lock()
604 lock->fl.fl_type, in nlmsvc_testlock()
605 (long long)lock->fl.fl_start, in nlmsvc_testlock()
606 (long long)lock->fl.fl_end); in nlmsvc_testlock()
614 test_owner = (struct nlm_lockowner *)lock->fl.fl_owner; in nlmsvc_testlock()
616 error = vfs_test_lock(file->f_file, &lock->fl); in nlmsvc_testlock()
626 if (lock->fl.fl_type == F_UNLCK) { in nlmsvc_testlock()
632 lock->fl.fl_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
633 (long long)lock->fl.fl_end); in nlmsvc_testlock()
637 conflock->svid = ((struct nlm_lockowner *)lock->fl.fl_owner)->pid; in nlmsvc_testlock()
638 conflock->fl.fl_type = lock->fl.fl_type; in nlmsvc_testlock()
639 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock()
640 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock()
641 locks_release_private(&lock->fl); in nlmsvc_testlock()
644 lock->fl.fl_owner = NULL; in nlmsvc_testlock()
667 lock->fl.fl_pid, in nlmsvc_unlock()
668 (long long)lock->fl.fl_start, in nlmsvc_unlock()
669 (long long)lock->fl.fl_end); in nlmsvc_unlock()
674 lock->fl.fl_type = F_UNLCK; in nlmsvc_unlock()
675 error = vfs_lock_file(file->f_file, F_SETLK, &lock->fl, NULL); in nlmsvc_unlock()
696 lock->fl.fl_pid, in nlmsvc_cancel_blocked()
697 (long long)lock->fl.fl_start, in nlmsvc_cancel_blocked()
698 (long long)lock->fl.fl_end); in nlmsvc_cancel_blocked()
708 &block->b_call->a_args.lock.fl); in nlmsvc_cancel_blocked()
734 static int nlmsvc_grant_deferred(struct file_lock *fl, int result) in nlmsvc_grant_deferred() argument
741 if (nlm_compare_locks(&block->b_call->a_args.lock.fl, fl)) { in nlmsvc_grant_deferred()
773 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked() argument
777 dprintk("lockd: VFS unblock notification for block %p\n", fl); in nlmsvc_notify_blocked()
780 if (nlm_compare_locks(&block->b_call->a_args.lock.fl, fl)) { in nlmsvc_notify_blocked()
834 lock->fl.fl_flags |= FL_SLEEP; in nlmsvc_grant_blocked()
835 fl_start = lock->fl.fl_start; in nlmsvc_grant_blocked()
836 fl_end = lock->fl.fl_end; in nlmsvc_grant_blocked()
837 error = vfs_lock_file(file->f_file, F_SETLK, &lock->fl, NULL); in nlmsvc_grant_blocked()
838 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_grant_blocked()
839 lock->fl.fl_start = fl_start; in nlmsvc_grant_blocked()
840 lock->fl.fl_end = fl_end; in nlmsvc_grant_blocked()