Cleanup usage of LINUX_VERSION_CODE for older kernels
[openafs.git] / src / config / param.linux26.h
index 76c4b65..75466f0 100644 (file)
 /* This section for kernel libafs compiles only */
 #include <linux/version.h>
 
-#define AFS_LINUX20_ENV                1
-#define AFS_LINUX22_ENV                1
-#define AFS_LINUX24_ENV                1
-#define AFS_LINUX26_ENV                1
+#define AFS_LINUX_ENV          1
 
-#define AFS_MOUNT_AFS          "afs"   /* The name of the filesystem type */
 #define AFS_64BIT_IOPS_ENV     1
 #define AFS_NAMEI_ENV          1       /* User space interface to file system */
 #define AFS_64BIT_CLIENT       1
@@ -29,9 +25,7 @@
 #define AFS_USERSPACE_IP_ADDR  1
 #define RXK_LISTENER_ENV       1
 #define AFS_GCPAGS             1       /* Set to Userdisabled, allow sysctl to override */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,4)
-# define AFS_PAG_ONEGROUP_ENV  1
-#endif
+#define AFS_PAG_ONEGROUP_ENV   1
 #define AFS_HAVE_FFS           1       /* Use system's ffs */
 #define AFS_HAVE_STATVFS       0       /* System doesn't support statvfs */
 #define AFS_VM_RDWR_ENV                1       /* read/write implemented via VM */
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
-#define AFS_USR_LINUX20_ENV    1
-#define AFS_USR_LINUX22_ENV    1
-#define AFS_USR_LINUX24_ENV    1
-#define AFS_USR_LINUX26_ENV    1
+
+#define AFS_USR_LINUX_ENV      1
 
 #define AFS_ENV                        1
 #define AFS_64BIT_CLIENT       1
 #undef  AFS_NONFSTRANS
 #define AFS_NONFSTRANS                 1
-#define AFS_MOUNT_AFS          "afs"   /* The name of the filesystem type. */
 #define AFS_64BIT_IOPS_ENV     1
 #define AFS_NAMEI_ENV          1       /* User space interface to file system */
 #define AFS_USERSPACE_IP_ADDR  1