Lines Matching refs:fl
5321 .fl = request, in _nfs4_proc_getlk()
5370 static int do_vfs_lock(struct inode *inode, struct file_lock *fl) in do_vfs_lock() argument
5373 switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) { in do_vfs_lock()
5375 res = posix_lock_inode_wait(inode, fl); in do_vfs_lock()
5378 res = flock_lock_inode_wait(inode, fl); in do_vfs_lock()
5391 struct file_lock fl; member
5396 static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl, in nfs4_alloc_unlockdata() argument
5408 p->arg.fl = &p->fl; in nfs4_alloc_unlockdata()
5415 memcpy(&p->fl, fl, sizeof(p->fl)); in nfs4_alloc_unlockdata()
5438 do_vfs_lock(calldata->lsp->ls_state->inode, &calldata->fl); in nfs4_locku_done()
5488 static struct rpc_task *nfs4_do_unlck(struct file_lock *fl, in nfs4_do_unlck() argument
5512 fl->fl_type = F_UNLCK; in nfs4_do_unlck()
5514 data = nfs4_alloc_unlockdata(fl, ctx, lsp, seqid); in nfs4_do_unlck()
5581 struct file_lock fl; member
5588 static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, in nfs4_alloc_lockdata() argument
5602 p->arg.fl = &p->fl; in nfs4_alloc_lockdata()
5618 get_file(fl->fl_file); in nfs4_alloc_lockdata()
5619 memcpy(&p->fl, fl, sizeof(p->fl)); in nfs4_alloc_lockdata()
5686 data->fl.fl_flags &= ~(FL_SLEEP | FL_ACCESS); in nfs4_lock_done()
5687 if (do_vfs_lock(lsp->ls_state->inode, &data->fl) < 0) { in nfs4_lock_done()
5722 task = nfs4_do_unlck(&data->fl, data->ctx, data->lsp, in nfs4_lock_release()
5731 fput(data->fl.fl_file); in nfs4_lock_release()
5759 static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_typ… in _nfs4_do_setlk() argument
5777 data = nfs4_alloc_lockdata(fl, nfs_file_open_context(fl->fl_file), in _nfs4_do_setlk()
5778 fl->fl_u.nfs4_fl.owner, in _nfs4_do_setlk()
6025 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid … in nfs4_lock_delegation_recall() argument
6030 err = nfs4_set_lock_state(state, fl); in nfs4_lock_delegation_recall()
6033 err = _nfs4_do_setlk(state, F_SETLK, fl, NFS_LOCK_NEW); in nfs4_lock_delegation_recall()