NFSv4: The stateid must remain the same for replayed RPC calls
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / nfs / nfs4_fs.h
index 9ce90135bf22d6abe0b364e13198e747534a7eb5..8309e98c44f90b8992eb6f2a284afbaf3f2d879d 100644 (file)
@@ -234,6 +234,10 @@ extern struct rpc_clnt *nfs4_proc_lookup_mountpoint(struct inode *, struct qstr
 extern int nfs4_proc_secinfo(struct inode *, const struct qstr *, struct nfs4_secinfo_flavors *);
 extern int nfs4_release_lockowner(struct nfs4_lock_state *);
 extern const struct xattr_handler *nfs4_xattr_handlers[];
+extern void nfs4_set_rw_stateid(nfs4_stateid *stateid,
+               const struct nfs_open_context *ctx,
+               const struct nfs_lock_context *l_ctx,
+               fmode_t fmode);
 
 #if defined(CONFIG_NFS_V4_1)
 static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server)