Commit 2ac1b9b2 authored by Chuck Lever's avatar Chuck Lever
Browse files

NFSD: Replace READ* macros that decode the fattr4 size attribute

parent 081d53fe
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -273,8 +273,11 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
	starting_pos = xdr_stream_pos(argp->xdr);
	starting_pos = xdr_stream_pos(argp->xdr);


	if (bmval[0] & FATTR4_WORD0_SIZE) {
	if (bmval[0] & FATTR4_WORD0_SIZE) {
		READ_BUF(8);
		u64 size;
		p = xdr_decode_hyper(p, &iattr->ia_size);

		if (xdr_stream_decode_u64(argp->xdr, &size) < 0)
			return nfserr_bad_xdr;
		iattr->ia_size = size;
		iattr->ia_valid |= ATTR_SIZE;
		iattr->ia_valid |= ATTR_SIZE;
	}
	}
	if (bmval[0] & FATTR4_WORD0_ACL) {
	if (bmval[0] & FATTR4_WORD0_ACL) {