Lines Matching refs:lrp
459 struct nfsd4_layoutreturn *lrp) in nfsd4_return_file_layouts() argument
467 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, in nfsd4_return_file_layouts()
468 false, lrp->lr_layout_type, in nfsd4_return_file_layouts()
471 trace_layout_return_lookup_fail(&lrp->lr_sid); in nfsd4_return_file_layouts()
477 if (layouts_overlapping(lp, &lrp->lr_seg)) { in nfsd4_return_file_layouts()
478 nfsd4_return_file_layout(lp, &lrp->lr_seg, &reaplist); in nfsd4_return_file_layouts()
485 memcpy(&lrp->lr_sid, &ls->ls_stid.sc_stateid, in nfsd4_return_file_layouts()
488 lrp->lrs_present = 1; in nfsd4_return_file_layouts()
492 lrp->lrs_present = 0; in nfsd4_return_file_layouts()
504 struct nfsd4_layoutreturn *lrp) in nfsd4_return_client_layouts() argument
511 lrp->lrs_present = 0; in nfsd4_return_client_layouts()
515 if (ls->ls_layout_type != lrp->lr_layout_type) in nfsd4_return_client_layouts()
518 if (lrp->lr_return_type == RETURN_FSID && in nfsd4_return_client_layouts()
525 if (lrp->lr_seg.iomode == IOMODE_ANY || in nfsd4_return_client_layouts()
526 lrp->lr_seg.iomode == lp->lo_seg.iomode) in nfsd4_return_client_layouts()