Lines Matching refs:lcp
584 struct nfsd4_layoutcommit *lcp)
586 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_layout_type) < 0)
588 if (lcp->lc_layout_type < LAYOUT_NFSV4_1_FILES)
590 if (lcp->lc_layout_type >= LAYOUT_TYPE_MAX)
593 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_up_len) < 0)
595 if (lcp->lc_up_len > 0) {
596 lcp->lc_up_layout = xdr_inline_decode(argp->xdr, lcp->lc_up_len);
597 if (!lcp->lc_up_layout)
1762 struct nfsd4_layoutcommit *lcp = &u->layoutcommit;
1765 memset(lcp, 0, sizeof(*lcp));
1766 if (xdr_stream_decode_u64(argp->xdr, &lcp->lc_seg.offset) < 0)
1768 if (xdr_stream_decode_u64(argp->xdr, &lcp->lc_seg.length) < 0)
1770 if (xdr_stream_decode_bool(argp->xdr, &lcp->lc_reclaim) < 0)
1772 status = nfsd4_decode_stateid4(argp, &lcp->lc_sid);
1775 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_newoffset) < 0)
1777 if (lcp->lc_newoffset) {
1778 if (xdr_stream_decode_u64(argp->xdr, &lcp->lc_last_wr) < 0)
1781 lcp->lc_last_wr = 0;
1786 status = nfsd4_decode_nfstime4(argp, &lcp->lc_mtime);
1790 lcp->lc_mtime.tv_nsec = UTIME_NOW;
1792 return nfsd4_decode_layoutupdate4(argp, lcp);
4759 struct nfsd4_layoutcommit *lcp = &u->layoutcommit;
4766 *p++ = cpu_to_be32(lcp->lc_size_chg);
4767 if (lcp->lc_size_chg) {
4771 p = xdr_encode_hyper(p, lcp->lc_newsize);