diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-04 18:13:57 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-06 10:32:47 -0500 |
commit | 2d2f24add1ff903ff8e0ce61c5c05635cc636985 (patch) | |
tree | 132ddb133179b95931d42a19e79d25f2db33339c /fs/nfs/nfs4_fs.h | |
parent | f597c53790f662662281b82b7692a22d2a4d4afa (diff) |
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/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 1c54ef3146d4..16373df96f90 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -351,12 +351,12 @@ extern struct svc_version nfs4_callback_version4; | |||
351 | 351 | ||
352 | static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) | 352 | static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) |
353 | { | 353 | { |
354 | memcpy(dst->data, src->data, sizeof(dst->data)); | 354 | memcpy(dst, src, sizeof(*dst)); |
355 | } | 355 | } |
356 | 356 | ||
357 | static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) | 357 | static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) |
358 | { | 358 | { |
359 | return memcmp(dst->data, src->data, sizeof(dst->data)) == 0; | 359 | return memcmp(dst, src, sizeof(*dst)) == 0; |
360 | } | 360 | } |
361 | 361 | ||
362 | #else | 362 | #else |