Lines Matching refs:lcp

584 			   struct nfsd4_layoutcommit *lcp)  in nfsd4_decode_layoutupdate4()  argument
586 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_layout_type) < 0) in nfsd4_decode_layoutupdate4()
588 if (lcp->lc_layout_type < LAYOUT_NFSV4_1_FILES) in nfsd4_decode_layoutupdate4()
590 if (lcp->lc_layout_type >= LAYOUT_TYPE_MAX) in nfsd4_decode_layoutupdate4()
593 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_up_len) < 0) in nfsd4_decode_layoutupdate4()
595 if (lcp->lc_up_len > 0) { in nfsd4_decode_layoutupdate4()
596 lcp->lc_up_layout = xdr_inline_decode(argp->xdr, lcp->lc_up_len); in nfsd4_decode_layoutupdate4()
597 if (!lcp->lc_up_layout) in nfsd4_decode_layoutupdate4()
1720 struct nfsd4_layoutcommit *lcp) in nfsd4_decode_layoutcommit() argument
1724 memset(lcp, 0, sizeof(*lcp)); in nfsd4_decode_layoutcommit()
1725 if (xdr_stream_decode_u64(argp->xdr, &lcp->lc_seg.offset) < 0) in nfsd4_decode_layoutcommit()
1727 if (xdr_stream_decode_u64(argp->xdr, &lcp->lc_seg.length) < 0) in nfsd4_decode_layoutcommit()
1729 if (xdr_stream_decode_bool(argp->xdr, &lcp->lc_reclaim) < 0) in nfsd4_decode_layoutcommit()
1731 status = nfsd4_decode_stateid4(argp, &lcp->lc_sid); in nfsd4_decode_layoutcommit()
1734 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_newoffset) < 0) in nfsd4_decode_layoutcommit()
1736 if (lcp->lc_newoffset) { in nfsd4_decode_layoutcommit()
1737 if (xdr_stream_decode_u64(argp->xdr, &lcp->lc_last_wr) < 0) in nfsd4_decode_layoutcommit()
1740 lcp->lc_last_wr = 0; in nfsd4_decode_layoutcommit()
1745 status = nfsd4_decode_nfstime4(argp, &lcp->lc_mtime); in nfsd4_decode_layoutcommit()
1749 lcp->lc_mtime.tv_nsec = UTIME_NOW; in nfsd4_decode_layoutcommit()
1751 return nfsd4_decode_layoutupdate4(argp, lcp); in nfsd4_decode_layoutcommit()
4631 struct nfsd4_layoutcommit *lcp) in nfsd4_encode_layoutcommit() argument
4639 *p++ = cpu_to_be32(lcp->lc_size_chg); in nfsd4_encode_layoutcommit()
4640 if (lcp->lc_size_chg) { in nfsd4_encode_layoutcommit()
4644 p = xdr_encode_hyper(p, lcp->lc_newsize); in nfsd4_encode_layoutcommit()