aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-04 18:13:57 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-06 10:32:47 -0500
commit2d2f24add1ff903ff8e0ce61c5c05635cc636985 (patch)
tree132ddb133179b95931d42a19e79d25f2db33339c /fs/nfs/nfs4proc.c
parentf597c53790f662662281b82b7692a22d2a4d4afa (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/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index ce0ad81dd466..e0e35288361c 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -6271,13 +6271,12 @@ static int nfs41_free_stateid(struct nfs_server *server, nfs4_stateid *stateid)
6271static bool nfs41_match_stateid(const nfs4_stateid *s1, 6271static bool nfs41_match_stateid(const nfs4_stateid *s1,
6272 const nfs4_stateid *s2) 6272 const nfs4_stateid *s2)
6273{ 6273{
6274 if (memcmp(s1->stateid.other, s2->stateid.other, 6274 if (memcmp(s1->other, s2->other, sizeof(s1->other)) != 0)
6275 sizeof(s1->stateid.other)) != 0)
6276 return false; 6275 return false;
6277 6276
6278 if (s1->stateid.seqid == s2->stateid.seqid) 6277 if (s1->seqid == s2->seqid)
6279 return true; 6278 return true;
6280 if (s1->stateid.seqid == 0 || s2->stateid.seqid == 0) 6279 if (s1->seqid == 0 || s2->seqid == 0)
6281 return true; 6280 return true;
6282 6281
6283 return false; 6282 return false;