Lines Matching refs:lrp
9811 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_prepare() local
9813 nfs4_setup_sequence(lrp->clp, in nfs4_layoutreturn_prepare()
9814 &lrp->args.seq_args, in nfs4_layoutreturn_prepare()
9815 &lrp->res.seq_res, in nfs4_layoutreturn_prepare()
9817 if (!pnfs_layout_is_valid(lrp->args.layout)) in nfs4_layoutreturn_prepare()
9823 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_done() local
9826 if (!nfs41_sequence_process(task, &lrp->res.seq_res)) in nfs4_layoutreturn_done()
9834 lrp->res.lrs_present = 0; in nfs4_layoutreturn_done()
9838 server = NFS_SERVER(lrp->args.inode); in nfs4_layoutreturn_done()
9841 if (nfs4_layout_refresh_old_stateid(&lrp->args.stateid, in nfs4_layoutreturn_done()
9842 &lrp->args.range, in nfs4_layoutreturn_done()
9843 lrp->args.inode)) in nfs4_layoutreturn_done()
9848 lrp->res.lrs_present = 0; in nfs4_layoutreturn_done()
9856 lrp->res.lrs_present = 0; in nfs4_layoutreturn_done()
9862 nfs4_sequence_free_slot(&lrp->res.seq_res); in nfs4_layoutreturn_done()
9868 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_release() local
9869 struct pnfs_layout_hdr *lo = lrp->args.layout; in nfs4_layoutreturn_release()
9871 pnfs_layoutreturn_free_lsegs(lo, &lrp->args.stateid, &lrp->args.range, in nfs4_layoutreturn_release()
9872 lrp->res.lrs_present ? &lrp->res.stateid : NULL); in nfs4_layoutreturn_release()
9873 nfs4_sequence_free_slot(&lrp->res.seq_res); in nfs4_layoutreturn_release()
9874 if (lrp->ld_private.ops && lrp->ld_private.ops->free) in nfs4_layoutreturn_release()
9875 lrp->ld_private.ops->free(&lrp->ld_private); in nfs4_layoutreturn_release()
9876 pnfs_put_layout_hdr(lrp->args.layout); in nfs4_layoutreturn_release()
9877 nfs_iput_and_deactive(lrp->inode); in nfs4_layoutreturn_release()
9878 put_cred(lrp->cred); in nfs4_layoutreturn_release()
9888 int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp, bool sync) in nfs4_proc_layoutreturn() argument
9893 .rpc_argp = &lrp->args, in nfs4_proc_layoutreturn()
9894 .rpc_resp = &lrp->res, in nfs4_proc_layoutreturn()
9895 .rpc_cred = lrp->cred, in nfs4_proc_layoutreturn()
9898 .rpc_client = NFS_SERVER(lrp->args.inode)->client, in nfs4_proc_layoutreturn()
9901 .callback_data = lrp, in nfs4_proc_layoutreturn()
9906 nfs4_state_protect(NFS_SERVER(lrp->args.inode)->nfs_client, in nfs4_proc_layoutreturn()
9910 lrp->inode = nfs_igrab_and_active(lrp->args.inode); in nfs4_proc_layoutreturn()
9912 if (!lrp->inode) { in nfs4_proc_layoutreturn()
9913 nfs4_layoutreturn_release(lrp); in nfs4_proc_layoutreturn()
9918 if (!lrp->inode) in nfs4_proc_layoutreturn()
9919 nfs4_init_sequence(&lrp->args.seq_args, &lrp->res.seq_res, 1, in nfs4_proc_layoutreturn()
9922 nfs4_init_sequence(&lrp->args.seq_args, &lrp->res.seq_res, 1, in nfs4_proc_layoutreturn()
9929 trace_nfs4_layoutreturn(lrp->args.inode, &lrp->args.stateid, status); in nfs4_proc_layoutreturn()