]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/nfs/nfs4_fs.h
NFSv4.1: add MDS mount DS only check
[mv-sheeva.git] / fs / nfs / nfs4_fs.h
index 1be36cf65bfc2968d567ae5b7f26b21ae60e951e..d4cfacc400037c51064d32ba4daa83fef7cc1689 100644 (file)
@@ -259,6 +259,13 @@ extern int nfs4_proc_destroy_session(struct nfs4_session *);
 extern int nfs4_init_session(struct nfs_server *server);
 extern int nfs4_proc_get_lease_time(struct nfs_client *clp,
                struct nfs_fsinfo *fsinfo);
+
+static inline bool
+is_ds_only_client(struct nfs_client *clp)
+{
+       return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) ==
+               EXCHGID4_FLAG_USE_PNFS_DS;
+}
 #else /* CONFIG_NFS_v4_1 */
 static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server)
 {
@@ -276,6 +283,12 @@ static inline int nfs4_init_session(struct nfs_server *server)
 {
        return 0;
 }
+
+static inline bool
+is_ds_only_client(struct nfs_client *clp)
+{
+       return false;
+}
 #endif /* CONFIG_NFS_V4_1 */
 
 extern const struct nfs4_minor_version_ops *nfs_v4_minor_ops[];