NFS: change stateid to be a union
authorAlexandros Batsakis <batsakis@netapp.com>
Wed, 20 Oct 2010 04:17:56 +0000 (00:17 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 24 Oct 2010 22:02:53 +0000 (18:02 -0400)
commit9449925273933d19235d7d36c1fd970841d055de
tree849b6ef6684e17effa3401fdae698b1af5111050
parentc772567d97fa0fca454eea68aeae915ca1bc732b
NFS: change stateid to be a union

In NFSv4.1 the stateid consists of the other and seqid fields. For layout
processing we need to numerically compare the seqid value of layout stateids.
To do so, introduce a union to nfs4_stateid to switch between opaque(16 bytes)
and opaque(12 bytes) / __be32

Signed-off-by: Alexandros Batsakis <batsakis@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/callback_proc.c
include/linux/nfs4.h