Lines Matching refs:fl

151 	struct file_lock	*fl;
154 file, lock->fl.fl_pid,
155 (long long)lock->fl.fl_start,
156 (long long)lock->fl.fl_end, lock->fl.fl_type);
159 fl = &block->b_call->a_args.lock.fl;
161 block->b_file, fl->fl_pid,
162 (long long)fl->fl_start,
163 (long long)fl->fl_end, fl->fl_type,
165 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) {
248 call->a_args.lock.fl.fl_flags |= FL_SLEEP;
249 call->a_args.lock.fl.fl_lmops = &nlmsvc_lock_operations;
288 status = locks_delete_block(&block->b_call->a_args.lock.fl);
406 if (lock->fl.fl_owner)
407 nlmsvc_put_lockowner(lock->fl.fl_owner);
410 void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host,
413 fl->fl_owner = nlmsvc_find_lockowner(host, pid);
422 locks_copy_lock(&call->a_args.lock.fl, &lock->fl);
429 call->a_args.lock.svid = ((struct nlm_lockowner *)lock->fl.fl_owner)->pid;
447 locks_release_private(&call->a_args.lock.fl);
495 lock->fl.fl_type, lock->fl.fl_pid,
496 (long long)lock->fl.fl_start,
497 (long long)lock->fl.fl_end,
518 lock->fl.fl_flags &= ~FL_SLEEP;
547 lock->fl.fl_flags &= ~FL_SLEEP;
548 mode = lock_to_openmode(&lock->fl);
549 error = vfs_lock_file(file->f_file[mode], F_SETLK, &lock->fl, NULL);
550 lock->fl.fl_flags &= ~FL_SLEEP;
608 lock->fl.fl_type,
609 (long long)lock->fl.fl_start,
610 (long long)lock->fl.fl_end);
617 mode = lock_to_openmode(&lock->fl);
618 error = vfs_test_lock(file->f_file[mode], &lock->fl);
628 if (lock->fl.fl_type == F_UNLCK) {
634 lock->fl.fl_type, (long long)lock->fl.fl_start,
635 (long long)lock->fl.fl_end);
639 conflock->svid = lock->fl.fl_pid;
640 conflock->fl.fl_type = lock->fl.fl_type;
641 conflock->fl.fl_start = lock->fl.fl_start;
642 conflock->fl.fl_end = lock->fl.fl_end;
643 locks_release_private(&lock->fl);
665 lock->fl.fl_pid,
666 (long long)lock->fl.fl_start,
667 (long long)lock->fl.fl_end);
672 lock->fl.fl_type = F_UNLCK;
673 lock->fl.fl_file = file->f_file[O_RDONLY];
674 if (lock->fl.fl_file)
675 error = vfs_lock_file(lock->fl.fl_file, F_SETLK,
676 &lock->fl, NULL);
677 lock->fl.fl_file = file->f_file[O_WRONLY];
678 if (lock->fl.fl_file)
679 error |= vfs_lock_file(lock->fl.fl_file, F_SETLK,
680 &lock->fl, NULL);
702 lock->fl.fl_pid,
703 (long long)lock->fl.fl_start,
704 (long long)lock->fl.fl_end);
713 struct file_lock *fl = &block->b_call->a_args.lock.fl;
715 mode = lock_to_openmode(fl);
716 vfs_cancel_lock(block->b_file->f_file[mode], fl);
742 static int nlmsvc_grant_deferred(struct file_lock *fl, int result)
749 if (nlm_compare_locks(&block->b_call->a_args.lock.fl, fl)) {
781 nlmsvc_notify_blocked(struct file_lock *fl)
785 dprintk("lockd: VFS unblock notification for block %p\n", fl);
788 if (nlm_compare_locks(&block->b_call->a_args.lock.fl, fl)) {
855 lock->fl.fl_flags |= FL_SLEEP;
856 fl_start = lock->fl.fl_start;
857 fl_end = lock->fl.fl_end;
858 mode = lock_to_openmode(&lock->fl);
859 error = vfs_lock_file(file->f_file[mode], F_SETLK, &lock->fl, NULL);
860 lock->fl.fl_flags &= ~FL_SLEEP;
861 lock->fl.fl_start = fl_start;
862 lock->fl.fl_end = fl_end;
968 struct file_lock *fl;
984 fl = &block->b_call->a_args.lock.fl;
985 fl->fl_type = F_UNLCK;
986 error = vfs_lock_file(fl->fl_file, F_SETLK, fl, NULL);