Lines Matching refs:lrp
8057 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_prepare() local
8060 nfs41_setup_sequence(lrp->clp->cl_session, in nfs4_layoutreturn_prepare()
8061 &lrp->args.seq_args, in nfs4_layoutreturn_prepare()
8062 &lrp->res.seq_res, in nfs4_layoutreturn_prepare()
8068 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_done() local
8073 if (!nfs41_sequence_done(task, &lrp->res.seq_res)) in nfs4_layoutreturn_done()
8076 server = NFS_SERVER(lrp->args.inode); in nfs4_layoutreturn_done()
8093 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_release() local
8094 struct pnfs_layout_hdr *lo = lrp->args.layout; in nfs4_layoutreturn_release()
8099 if (lrp->res.lrs_present) in nfs4_layoutreturn_release()
8100 pnfs_set_layout_stateid(lo, &lrp->res.stateid, true); in nfs4_layoutreturn_release()
8101 pnfs_mark_matching_lsegs_invalid(lo, &freeme, &lrp->args.range); in nfs4_layoutreturn_release()
8105 pnfs_put_layout_hdr(lrp->args.layout); in nfs4_layoutreturn_release()
8106 nfs_iput_and_deactive(lrp->inode); in nfs4_layoutreturn_release()
8117 int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp, bool sync) in nfs4_proc_layoutreturn() argument
8122 .rpc_argp = &lrp->args, in nfs4_proc_layoutreturn()
8123 .rpc_resp = &lrp->res, in nfs4_proc_layoutreturn()
8124 .rpc_cred = lrp->cred, in nfs4_proc_layoutreturn()
8127 .rpc_client = NFS_SERVER(lrp->args.inode)->client, in nfs4_proc_layoutreturn()
8130 .callback_data = lrp, in nfs4_proc_layoutreturn()
8136 lrp->inode = nfs_igrab_and_active(lrp->args.inode); in nfs4_proc_layoutreturn()
8137 if (!lrp->inode) { in nfs4_proc_layoutreturn()
8138 nfs4_layoutreturn_release(lrp); in nfs4_proc_layoutreturn()
8143 nfs4_init_sequence(&lrp->args.seq_args, &lrp->res.seq_res, 1); in nfs4_proc_layoutreturn()
8149 trace_nfs4_layoutreturn(lrp->args.inode, status); in nfs4_proc_layoutreturn()