xfs
[Top] [All Lists]

[PATCH 70/82] remove linux/version.h from fs/xfs/

To: Andrew Morton <akpm@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx
Subject: [PATCH 70/82] remove linux/version.h from fs/xfs/
From: Olaf Hering <olh@xxxxxxx>
Date: Sun, 10 Jul 2005 19:36:18 +0000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20050710193508.0.PmFpst2252.2247.olh@nectarine.suse.de>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt und vi sind doch schneller als Notes (und GroupWise)
changing CONFIG_LOCALVERSION rebuilds too much, for no appearent reason.
remove code for obsolete kernels

Signed-off-by: Olaf Hering <olh@xxxxxxx>

fs/xfs/linux-2.6/xfs_linux.h |    1 -
fs/xfs/xfs_dmapi.h           |   16 ----------------
2 files changed, 17 deletions(-)

Index: linux-2.6.13-rc2-mm1/fs/xfs/linux-2.6/xfs_linux.h
===================================================================
--- linux-2.6.13-rc2-mm1.orig/fs/xfs/linux-2.6/xfs_linux.h
+++ linux-2.6.13-rc2-mm1/fs/xfs/linux-2.6/xfs_linux.h
@@ -87,7 +87,6 @@
#include <linux/init.h>
#include <linux/list.h>
#include <linux/proc_fs.h>
-#include <linux/version.h>
#include <linux/sort.h>

#include <asm/page.h>
Index: linux-2.6.13-rc2-mm1/fs/xfs/xfs_dmapi.h
===================================================================
--- linux-2.6.13-rc2-mm1.orig/fs/xfs/xfs_dmapi.h
+++ linux-2.6.13-rc2-mm1/fs/xfs/xfs_dmapi.h
@@ -172,25 +172,9 @@ typedef enum {
/*
*       Based on IO_ISDIRECT, decide which i_ flag is set.
*/
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0)
#define DM_SEM_FLAG_RD(ioflags) (((ioflags) & IO_ISDIRECT) ?                    
      DM_FLAGS_ISEM : 0)
#define DM_SEM_FLAG_WR  (DM_FLAGS_IALLOCSEM_WR | DM_FLAGS_ISEM)
-#endif
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)) && -    (LINUX_VERSION_CODE 
>= KERNEL_VERSION(2,4,22))
-#define DM_SEM_FLAG_RD(ioflags) (((ioflags) & IO_ISDIRECT) ? -                 
      DM_FLAGS_IALLOCSEM_RD : DM_FLAGS_ISEM)
-#define DM_SEM_FLAG_WR (DM_FLAGS_IALLOCSEM_WR | DM_FLAGS_ISEM)
-#endif
-
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,21)
-#define DM_SEM_FLAG_RD(ioflags) (((ioflags) & IO_ISDIRECT) ? -                 
      0 : DM_FLAGS_ISEM)
-#define DM_SEM_FLAG_WR (DM_FLAGS_ISEM)
-#endif
-

/*
*       Macros to turn caller specified delay/block flags into


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 70/82] remove linux/version.h from fs/xfs/, Olaf Hering <=