Lines Matching refs:fl
3604 nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb() argument
3607 struct nfs4_file *fp = (struct nfs4_file *)fl->fl_owner; in nfsd_break_deleg_cb()
3611 WARN(1, "(%p)->fl_owner NULL\n", fl); in nfsd_break_deleg_cb()
3623 fl->fl_break_time = 0; in nfsd_break_deleg_cb()
3982 struct file_lock *fl; in nfs4_alloc_init_lease() local
3984 fl = locks_alloc_lock(); in nfs4_alloc_init_lease()
3985 if (!fl) in nfs4_alloc_init_lease()
3987 fl->fl_lmops = &nfsd_lease_mng_ops; in nfs4_alloc_init_lease()
3988 fl->fl_flags = FL_DELEG; in nfs4_alloc_init_lease()
3989 fl->fl_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()
3990 fl->fl_end = OFFSET_MAX; in nfs4_alloc_init_lease()
3991 fl->fl_owner = (fl_owner_t)fp; in nfs4_alloc_init_lease()
3992 fl->fl_pid = current->tgid; in nfs4_alloc_init_lease()
3993 return fl; in nfs4_alloc_init_lease()
4011 struct file_lock *fl, *ret; in nfs4_setlease() local
4015 fl = nfs4_alloc_init_lease(fp, NFS4_OPEN_DELEGATE_READ); in nfs4_setlease()
4016 if (!fl) in nfs4_setlease()
4024 fl->fl_file = filp; in nfs4_setlease()
4025 ret = fl; in nfs4_setlease()
4026 status = vfs_setlease(filp, fl->fl_type, &fl, NULL); in nfs4_setlease()
4027 if (fl) in nfs4_setlease()
4028 locks_free_lock(fl); in nfs4_setlease()
5187 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied() argument
5191 if (fl->fl_lmops == &nfsd_posix_mng_ops) { in nfs4_set_lock_denied()
5192 lo = (struct nfs4_lockowner *) fl->fl_owner; in nfs4_set_lock_denied()
5207 deny->ld_start = fl->fl_start; in nfs4_set_lock_denied()
5209 if (fl->fl_end != NFS4_MAX_UINT64) in nfs4_set_lock_denied()
5210 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied()
5212 if (fl->fl_type != F_RDLCK) in nfs4_set_lock_denied()
5793 struct file_lock *fl; in check_for_locks() local
5810 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
5811 if (fl->fl_owner == (fl_owner_t)lowner) { in check_for_locks()