Lines Matching refs:lrp

9759 	struct nfs4_layoutreturn *lrp = calldata;  in nfs4_layoutreturn_prepare()  local
9761 nfs4_setup_sequence(lrp->clp, in nfs4_layoutreturn_prepare()
9762 &lrp->args.seq_args, in nfs4_layoutreturn_prepare()
9763 &lrp->res.seq_res, in nfs4_layoutreturn_prepare()
9765 if (!pnfs_layout_is_valid(lrp->args.layout)) in nfs4_layoutreturn_prepare()
9771 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_done() local
9774 if (!nfs41_sequence_process(task, &lrp->res.seq_res)) in nfs4_layoutreturn_done()
9782 lrp->res.lrs_present = 0; in nfs4_layoutreturn_done()
9786 server = NFS_SERVER(lrp->args.inode); in nfs4_layoutreturn_done()
9789 if (nfs4_layout_refresh_old_stateid(&lrp->args.stateid, in nfs4_layoutreturn_done()
9790 &lrp->args.range, in nfs4_layoutreturn_done()
9791 lrp->args.inode)) in nfs4_layoutreturn_done()
9807 nfs4_sequence_free_slot(&lrp->res.seq_res); in nfs4_layoutreturn_done()
9813 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_release() local
9814 struct pnfs_layout_hdr *lo = lrp->args.layout; in nfs4_layoutreturn_release()
9816 pnfs_layoutreturn_free_lsegs(lo, &lrp->args.stateid, &lrp->args.range, in nfs4_layoutreturn_release()
9817 lrp->res.lrs_present ? &lrp->res.stateid : NULL); in nfs4_layoutreturn_release()
9818 nfs4_sequence_free_slot(&lrp->res.seq_res); in nfs4_layoutreturn_release()
9819 if (lrp->ld_private.ops && lrp->ld_private.ops->free) in nfs4_layoutreturn_release()
9820 lrp->ld_private.ops->free(&lrp->ld_private); in nfs4_layoutreturn_release()
9821 pnfs_put_layout_hdr(lrp->args.layout); in nfs4_layoutreturn_release()
9822 nfs_iput_and_deactive(lrp->inode); in nfs4_layoutreturn_release()
9823 put_cred(lrp->cred); in nfs4_layoutreturn_release()
9833 int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp, bool sync) in nfs4_proc_layoutreturn() argument
9838 .rpc_argp = &lrp->args, in nfs4_proc_layoutreturn()
9839 .rpc_resp = &lrp->res, in nfs4_proc_layoutreturn()
9840 .rpc_cred = lrp->cred, in nfs4_proc_layoutreturn()
9843 .rpc_client = NFS_SERVER(lrp->args.inode)->client, in nfs4_proc_layoutreturn()
9846 .callback_data = lrp, in nfs4_proc_layoutreturn()
9851 nfs4_state_protect(NFS_SERVER(lrp->args.inode)->nfs_client, in nfs4_proc_layoutreturn()
9855 lrp->inode = nfs_igrab_and_active(lrp->args.inode); in nfs4_proc_layoutreturn()
9857 if (!lrp->inode) { in nfs4_proc_layoutreturn()
9858 nfs4_layoutreturn_release(lrp); in nfs4_proc_layoutreturn()
9863 if (!lrp->inode) in nfs4_proc_layoutreturn()
9864 nfs4_init_sequence(&lrp->args.seq_args, &lrp->res.seq_res, 1, in nfs4_proc_layoutreturn()
9867 nfs4_init_sequence(&lrp->args.seq_args, &lrp->res.seq_res, 1, in nfs4_proc_layoutreturn()
9874 trace_nfs4_layoutreturn(lrp->args.inode, &lrp->args.stateid, status); in nfs4_proc_layoutreturn()