Lines Matching refs:fl

119 	struct file_lock	*fl;  in nlmsvc_lookup_block()  local
122 file, lock->fl.fl_pid, in nlmsvc_lookup_block()
123 (long long)lock->fl.fl_start, in nlmsvc_lookup_block()
124 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block()
126 fl = &block->b_call->a_args.lock.fl; in nlmsvc_lookup_block()
128 block->b_file, fl->fl_pid, in nlmsvc_lookup_block()
129 (long long)fl->fl_start, in nlmsvc_lookup_block()
130 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block()
132 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) { in nlmsvc_lookup_block()
211 call->a_args.lock.fl.fl_flags |= FL_SLEEP; in nlmsvc_create_block()
212 call->a_args.lock.fl.fl_lmops = &nlmsvc_lock_operations; in nlmsvc_create_block()
252 status = posix_unblock_lock(block->b_file->f_file, &block->b_call->a_args.lock.fl); in nlmsvc_unlink_block()
316 locks_copy_lock(&call->a_args.lock.fl, &lock->fl); in nlmsvc_setgrantargs()
323 call->a_args.lock.svid = lock->fl.fl_pid; in nlmsvc_setgrantargs()
341 locks_release_private(&call->a_args.lock.fl); in nlmsvc_freegrantargs()
385 lock->fl.fl_type, lock->fl.fl_pid, in nlmsvc_lock()
386 (long long)lock->fl.fl_start, in nlmsvc_lock()
387 (long long)lock->fl.fl_end, in nlmsvc_lock()
403 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_lock()
432 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_lock()
433 error = vfs_lock_file(file->f_file, F_SETLK, &lock->fl, NULL); in nlmsvc_lock()
434 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_lock()
492 lock->fl.fl_type, in nlmsvc_testlock()
493 (long long)lock->fl.fl_start, in nlmsvc_testlock()
494 (long long)lock->fl.fl_end); in nlmsvc_testlock()
523 lock->fl = *block->b_fl; in nlmsvc_testlock()
538 error = vfs_test_lock(file->f_file, &lock->fl); in nlmsvc_testlock()
547 if (lock->fl.fl_type == F_UNLCK) { in nlmsvc_testlock()
554 lock->fl.fl_type, (long long)lock->fl.fl_start, in nlmsvc_testlock()
555 (long long)lock->fl.fl_end); in nlmsvc_testlock()
559 conflock->svid = lock->fl.fl_pid; in nlmsvc_testlock()
560 conflock->fl.fl_type = lock->fl.fl_type; in nlmsvc_testlock()
561 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock()
562 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock()
585 lock->fl.fl_pid, in nlmsvc_unlock()
586 (long long)lock->fl.fl_start, in nlmsvc_unlock()
587 (long long)lock->fl.fl_end); in nlmsvc_unlock()
592 lock->fl.fl_type = F_UNLCK; in nlmsvc_unlock()
593 error = vfs_lock_file(file->f_file, F_SETLK, &lock->fl, NULL); in nlmsvc_unlock()
614 lock->fl.fl_pid, in nlmsvc_cancel_blocked()
615 (long long)lock->fl.fl_start, in nlmsvc_cancel_blocked()
616 (long long)lock->fl.fl_end); in nlmsvc_cancel_blocked()
626 &block->b_call->a_args.lock.fl); in nlmsvc_cancel_blocked()
658 static int nlmsvc_grant_deferred(struct file_lock *fl, struct file_lock *conf, in nlmsvc_grant_deferred() argument
666 if (nlm_compare_locks(&block->b_call->a_args.lock.fl, fl)) { in nlmsvc_grant_deferred()
698 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked() argument
702 dprintk("lockd: VFS unblock notification for block %p\n", fl); in nlmsvc_notify_blocked()
705 if (nlm_compare_locks(&block->b_call->a_args.lock.fl, fl)) { in nlmsvc_notify_blocked()
761 lock->fl.fl_flags |= FL_SLEEP; in nlmsvc_grant_blocked()
762 error = vfs_lock_file(file->f_file, F_SETLK, &lock->fl, NULL); in nlmsvc_grant_blocked()
763 lock->fl.fl_flags &= ~FL_SLEEP; in nlmsvc_grant_blocked()