aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMike Sager <sager@netapp.com>2009-04-01 09:21:47 -0400
committerBenny Halevy <bhalevy@panasas.com>2009-06-17 13:46:14 -0400
commit44549dff82753b6a5ffabcefeead34be63e95d96 (patch)
tree405fa0dd7c69a5e58f024f28e0922ed58f102856 /include/linux
parent1efae38140546db403845d628db9f2d608caa87e (diff)
nfs41: define NFS4_MAX_MINOR_VERSION based on CONFIG_NFS_V4_1
If 4.1 isn't supported, NFS4_MAX_MINOR_VERSION will be 0. Signed-off-by: Mike Sager <sager@netapp.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs4.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index e3f0cbcbd0db..7c36fcf2dfb7 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -462,6 +462,13 @@ enum lock_type4 {
462#define NFSPROC4_NULL 0 462#define NFSPROC4_NULL 0
463#define NFSPROC4_COMPOUND 1 463#define NFSPROC4_COMPOUND 1
464#define NFS4_MINOR_VERSION 0 464#define NFS4_MINOR_VERSION 0
465
466#if defined(CONFIG_NFS_V4_1)
467#define NFS4_MAX_MINOR_VERSION 1
468#else
469#define NFS4_MAX_MINOR_VERSION 0
470#endif /* CONFIG_NFS_V4_1 */
471
465#define NFS4_DEBUG 1 472#define NFS4_DEBUG 1
466 473
467/* Index of predefined Linux client operations */ 474/* Index of predefined Linux client operations */