Lines Matching refs:fl
3672 nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb() argument
3675 struct nfs4_file *fp = (struct nfs4_file *)fl->fl_owner; in nfsd_break_deleg_cb()
3679 WARN(1, "(%p)->fl_owner NULL\n", fl); in nfsd_break_deleg_cb()
3691 fl->fl_break_time = 0; in nfsd_break_deleg_cb()
4022 struct file_lock *fl; in nfs4_alloc_init_lease() local
4024 fl = locks_alloc_lock(); in nfs4_alloc_init_lease()
4025 if (!fl) in nfs4_alloc_init_lease()
4027 fl->fl_lmops = &nfsd_lease_mng_ops; in nfs4_alloc_init_lease()
4028 fl->fl_flags = FL_DELEG; in nfs4_alloc_init_lease()
4029 fl->fl_type = flag == NFS4_OPEN_DELEGATE_READ? F_RDLCK: F_WRLCK; in nfs4_alloc_init_lease()
4030 fl->fl_end = OFFSET_MAX; in nfs4_alloc_init_lease()
4031 fl->fl_owner = (fl_owner_t)fp; in nfs4_alloc_init_lease()
4032 fl->fl_pid = current->tgid; in nfs4_alloc_init_lease()
4033 return fl; in nfs4_alloc_init_lease()
4051 struct file_lock *fl; in nfs4_setlease() local
4055 fl = nfs4_alloc_init_lease(fp, NFS4_OPEN_DELEGATE_READ); in nfs4_setlease()
4056 if (!fl) in nfs4_setlease()
4062 locks_free_lock(fl); in nfs4_setlease()
4065 fl->fl_file = filp; in nfs4_setlease()
4066 status = vfs_setlease(filp, fl->fl_type, &fl, NULL); in nfs4_setlease()
4067 if (fl) in nfs4_setlease()
4068 locks_free_lock(fl); in nfs4_setlease()
5271 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied() argument
5275 if (fl->fl_lmops == &nfsd_posix_mng_ops) { in nfs4_set_lock_denied()
5276 lo = (struct nfs4_lockowner *) fl->fl_owner; in nfs4_set_lock_denied()
5291 deny->ld_start = fl->fl_start; in nfs4_set_lock_denied()
5293 if (fl->fl_end != NFS4_MAX_UINT64) in nfs4_set_lock_denied()
5294 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied()
5296 if (fl->fl_type != F_RDLCK) in nfs4_set_lock_denied()
5871 struct file_lock *fl; in check_for_locks() local
5888 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
5889 if (fl->fl_owner == (fl_owner_t)lowner) { in check_for_locks()