projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NFSv4: Simplify the struct nfs4_stateid
[linux-2.6-block.git]
/
fs
/
nfs
/
callback_xdr.c
diff --git
a/fs/nfs/callback_xdr.c
b/fs/nfs/callback_xdr.c
index 5466829c7e774e9b58d9f8bb34b177993b4a8eb9..fd6cfdb917da8c68fcd8ad08f20943d1cb608711 100644
(file)
--- a/
fs/nfs/callback_xdr.c
+++ b/
fs/nfs/callback_xdr.c
@@
-138,10
+138,10
@@
static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid)
{
__be32 *p;
- p = read_buf(xdr,
16
);
+ p = read_buf(xdr,
NFS4_STATEID_SIZE
);
if (unlikely(p == NULL))
return htonl(NFS4ERR_RESOURCE);
- memcpy(stateid
->data, p, 16
);
+ memcpy(stateid
, p, NFS4_STATEID_SIZE
);
return 0;
}