Whamcloud - gitweb
Allow current b_devel to work with older (read LLNL) kernels until they are
authoradilger <adilger>
Mon, 17 Nov 2003 19:26:28 +0000 (19:26 +0000)
committeradilger <adilger>
Mon, 17 Nov 2003 19:26:28 +0000 (19:26 +0000)
updated.  Bumped LUSTRE_KERNEL_VERSION to 31 so we know which kernels have
the required patches, but don't make it a hard requirement.
b=1933

lnet/include/linux/kp30.h
lustre/kernel_patches/patches/gfp_memalloc-2.4.18-chaos.patch
lustre/kernel_patches/patches/gfp_memalloc-2.4.20-rh.patch
lustre/kernel_patches/patches/gfp_memalloc-2.4.22.patch
lustre/kernel_patches/patches/jbd-2.4.18-jcberr.patch
lustre/portals/include/linux/kp30.h

index 14be8aa..49f6d95 100644 (file)
@@ -279,6 +279,10 @@ do {                                                                          \
 
 #define PORTAL_VMALLOC_SIZE        16384
 
+#ifndef GFP_MEMALLOC
+#define GFP_MEMALLOC 0
+#endif
+
 #define PORTAL_ALLOC(ptr, size)                                           \
 do {                                                                      \
         LASSERT (!in_interrupt());                                        \
@@ -314,6 +318,10 @@ do {                                                                    \
                s, (ptr), atomic_read(&portal_kmemory));                 \
 } while (0)
 
+#ifndef SLAB_MEMALLOC
+#define SLAB_MEMALLOC 0
+#endif
+
 #define PORTAL_SLAB_ALLOC(ptr, slab, size)                                \
 do {                                                                      \
         LASSERT(!in_interrupt());                                         \
index 9deb045..a8489e6 100644 (file)
@@ -39,7 +39,7 @@ Index: linux-2.4.18-chaos/include/linux/slab.h
  #define       SLAB_KERNEL             GFP_KERNEL
  #define       SLAB_NFS                GFP_NFS
  #define       SLAB_DMA                GFP_DMA
-+#define SLAB_MEMALLOC           GFP_MEMALLOC
++#define       SLAB_MEMALLOC           GFP_MEMALLOC
  
  #define SLAB_LEVEL_MASK               (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_HIGHIO|__GFP_FS)
  #define       SLAB_NO_GROW            0x00001000UL    /* don't grow a cache */
index 947e1e4..3f37e44 100644 (file)
@@ -40,7 +40,7 @@ Index: linux-2.4.20-rh-20.9/include/linux/slab.h
  #define       SLAB_KERNEL             GFP_KERNEL
  #define       SLAB_NFS                GFP_NFS
  #define       SLAB_DMA                GFP_DMA
-+#define SLAB_MEMALLOC           GFP_MEMALLOC
++#define       SLAB_MEMALLOC           GFP_MEMALLOC
  
  #define SLAB_LEVEL_MASK               (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_HIGHIO|__GFP_FS)
  #define       SLAB_NO_GROW            0x00001000UL    /* don't grow a cache */
index 74ce782..015bfc8 100644 (file)
@@ -40,7 +40,7 @@ Index: linux-2.4.22-vanilla/include/linux/slab.h
  #define       SLAB_KERNEL             GFP_KERNEL
  #define       SLAB_NFS                GFP_NFS
  #define       SLAB_DMA                GFP_DMA
-+#define SLAB_MEMALLOC           GFP_MEMALLOC
++#define       SLAB_MEMALLOC           GFP_MEMALLOC
  
  #define SLAB_LEVEL_MASK               (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_HIGHIO|__GFP_FS)
  #define       SLAB_NO_GROW            0x00001000UL    /* don't grow a cache */
index fb9b543..81b4136 100644 (file)
@@ -101,14 +101,6 @@ Index: linux-2.4.19.SuSE/fs/jbd/commit.c
        /* AKPM: buglet - add `i' to tmp! */
        for (i = 0; i < jh2bh(descriptor)->b_size; i += 512) {
                journal_header_t *tmp =
-@@ -600,6 +603,7 @@
-       }
-       unlock_journal(journal);
-+      unlocked = 1;
-       JBUFFER_TRACE(descriptor, "write commit block");
-       {
-               struct buffer_head *bh = jh2bh(descriptor);
 @@ -610,14 +614,32 @@
                put_bh(bh);             /* One for getblk() */
                journal_unlock_journal_head(descriptor);
index 14be8aa..49f6d95 100644 (file)
@@ -279,6 +279,10 @@ do {                                                                          \
 
 #define PORTAL_VMALLOC_SIZE        16384
 
+#ifndef GFP_MEMALLOC
+#define GFP_MEMALLOC 0
+#endif
+
 #define PORTAL_ALLOC(ptr, size)                                           \
 do {                                                                      \
         LASSERT (!in_interrupt());                                        \
@@ -314,6 +318,10 @@ do {                                                                    \
                s, (ptr), atomic_read(&portal_kmemory));                 \
 } while (0)
 
+#ifndef SLAB_MEMALLOC
+#define SLAB_MEMALLOC 0
+#endif
+
 #define PORTAL_SLAB_ALLOC(ptr, slab, size)                                \
 do {                                                                      \
         LASSERT(!in_interrupt());                                         \