diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-05-16 17:42:43 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-05-17 15:48:06 -0400 |
commit | 93b717fd81bf6b9a73c3702e9b079b4de8148b34 (patch) | |
tree | 0ae5ec7f5a79410e12710941fffc9725a687c6d8 /fs/nfs/nfs4state.c | |
parent | 9a8f6b5ea275ff01fc8ef3b8630a3d4ed6b0a362 (diff) | |
download | linux-stable-93b717fd81bf6b9a73c3702e9b079b4de8148b34.tar.gz linux-stable-93b717fd81bf6b9a73c3702e9b079b4de8148b34.tar.bz2 linux-stable-93b717fd81bf6b9a73c3702e9b079b4de8148b34.zip |
NFSv4: Label stateids with the type
In order to more easily distinguish what kind of stateid we are dealing
with, introduce a type that can be used to label the stateid structure.
The label will be useful both for debugging, but also when dealing with
operations like SETATTR, READ and WRITE that can take several different
types of stateid as arguments.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index d854693a15b0..d630f9cca0f1 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -65,7 +65,10 @@ #define OPENOWNER_POOL_SIZE 8 -const nfs4_stateid zero_stateid; +const nfs4_stateid zero_stateid = { + .data = { 0 }, + .type = NFS4_SPECIAL_STATEID_TYPE, +}; static DEFINE_MUTEX(nfs_clid_init_mutex); int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) |