diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-05 00:13:57 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-06 16:32:47 +0100 |
commit | 2d2f24add1ff903ff8e0ce61c5c05635cc636985 (patch) | |
tree | 132ddb133179b95931d42a19e79d25f2db33339c /fs/nfs/callback_xdr.c | |
parent | NFSv4: Add helpers for basic copying of stateids (diff) | |
download | linux-2d2f24add1ff903ff8e0ce61c5c05635cc636985.tar.xz linux-2d2f24add1ff903ff8e0ce61c5c05635cc636985.zip |
NFSv4: Simplify the struct nfs4_stateid
Replace the union with the common struct stateid4 as defined in both
RFC3530 and RFC5661. This makes it easier to access the sequence id,
which will again make implementing support for parallel OPEN calls
easier.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback_xdr.c')
-rw-r--r-- | fs/nfs/callback_xdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index 5466829c7e77..fd6cfdb917da 100644 --- 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; } |