mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
NFSD: Replace READ* macros that decode the fattr4 size attribute
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
081d53fe0b
commit
2ac1b9b2af
1 changed files with 5 additions and 2 deletions
|
@ -273,8 +273,11 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
|
|||
starting_pos = xdr_stream_pos(argp->xdr);
|
||||
|
||||
if (bmval[0] & FATTR4_WORD0_SIZE) {
|
||||
READ_BUF(8);
|
||||
p = xdr_decode_hyper(p, &iattr->ia_size);
|
||||
u64 size;
|
||||
|
||||
if (xdr_stream_decode_u64(argp->xdr, &size) < 0)
|
||||
return nfserr_bad_xdr;
|
||||
iattr->ia_size = size;
|
||||
iattr->ia_valid |= ATTR_SIZE;
|
||||
}
|
||||
if (bmval[0] & FATTR4_WORD0_ACL) {
|
||||
|
|
Loading…
Reference in a new issue