Whamcloud - gitweb
Branch: b1_2
authoradilger <adilger>
Wed, 6 Oct 2004 19:03:37 +0000 (19:03 +0000)
committeradilger <adilger>
Wed, 6 Oct 2004 19:03:37 +0000 (19:03 +0000)
Add fix for SUPERBH_MAX_USERS
b=4505

lustre/kernel_patches/patches/blkdev_tunables-2.4.21-chaos.patch

index 2a834ac..9349422 100644 (file)
  
  /*
   * bh abuse :/
+--- ./mm/highmem.c.orig        2004-09-11 08:16:19.000000000 -0600
++++ ./mm/highmem.c     2004-10-06 11:52:34.000000000 -0600
+@@ -465,7 +465,7 @@ struct buffer_head * create_bounce(int r
+ /*
+  * FIXME: assuming PAGE_SIZE buffer_heads
+  */
+-#define SUPERBH_MAX_USERS     (POOL_SIZE * PAGE_SIZE / MAX_SUPERBH)
++#define SUPERBH_MAX_USERS     max(POOL_SIZE * PAGE_SIZE / MAX_SUPERBH, 1)
+ static int superbh_users;
+ static DECLARE_WAIT_QUEUE_HEAD(superbh_wait);