git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NFSD: Fix NFSv3 SETATTR/CREATE's handling of large file sizes
[sfrench/cifs-2.6.git]
/
fs
/
nfsd
/
nfs3xdr.c
diff --git
a/fs/nfsd/nfs3xdr.c
b/fs/nfsd/nfs3xdr.c
index 7c45ba4db61be641078e509dbe2ed3705eee4c21..2e47a07029f1df7ca3898e9bb9637f46af15cb5f 100644
(file)
--- a/
fs/nfsd/nfs3xdr.c
+++ b/
fs/nfsd/nfs3xdr.c
@@
-254,7
+254,7
@@
svcxdr_decode_sattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr,
if (xdr_stream_decode_u64(xdr, &newsize) < 0)
return false;
iap->ia_valid |= ATTR_SIZE;
- iap->ia_size =
min_t(u64, newsize, NFS_OFFSET_MAX)
;
+ iap->ia_size =
newsize
;
}
if (xdr_stream_decode_u32(xdr, &set_it) < 0)
return false;