Lines Matching defs:fl

2275 static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct nfs4_state *state, const nfs4_stateid *stateid, struct file_lock *fl, int err)
2320 if (fl) {
2321 struct nfs4_lock_state *lsp = fl->fl_u.nfs4_fl.owner;
6774 .fl = request,
6867 struct file_lock fl;
6872 static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl,
6885 p->arg.fl = &p->fl;
6892 locks_init_lock(&p->fl);
6893 locks_copy_lock(&p->fl, fl);
6924 locks_lock_inode_wait(calldata->lsp->ls_state->inode, &calldata->fl);
6989 static struct rpc_task *nfs4_do_unlck(struct file_lock *fl,
7016 fl->c.flc_type = F_UNLCK;
7017 if (fl->c.flc_flags & FL_CLOSE)
7020 data = nfs4_alloc_unlockdata(fl, ctx, lsp, seqid);
7090 struct file_lock fl;
7097 static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl,
7111 p->arg.fl = &p->fl;
7126 locks_init_lock(&p->fl);
7127 locks_copy_lock(&p->fl, fl);
7191 data->fl.c.flc_flags &= ~(FL_SLEEP | FL_ACCESS);
7192 if (locks_lock_inode_wait(lsp->ls_state->inode, &data->fl) < 0)
7237 task = nfs4_do_unlck(&data->fl, data->ctx, data->lsp,
7272 static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_type)
7292 data = nfs4_alloc_lockdata(fl,
7293 nfs_file_open_context(fl->c.flc_file),
7294 fl->fl_u.nfs4_fl.owner, GFP_KERNEL);
7320 trace_nfs4_set_lock(fl, state, &data->res.stateid, cmd, ret);
7634 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid)
7639 err = nfs4_set_lock_state(state, fl);
7643 err = _nfs4_do_setlk(state, F_SETLK, fl, NFS_LOCK_NEW);
7648 return nfs4_handle_delegation_recall_error(server, state, stateid, fl, err);