Merge tag 'fsnotify_for_v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / fs / nfs / nfs4state.c
index c10a422efe6f4422ab22750c22cce18b37ef36f9..2bf2eaa08ca7de5397e0099786b672a757543242 100644 (file)
@@ -77,6 +77,14 @@ const nfs4_stateid invalid_stateid = {
        .type = NFS4_INVALID_STATEID_TYPE,
 };
 
+const nfs4_stateid current_stateid = {
+       {
+               /* Funky initialiser keeps older gcc versions happy */
+               .data = { 0x0, 0x0, 0x0, 0x1, 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)