From 09797a429d40ec101c260ad5c87a156df55f808d Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 6 Oct 2004 19:02:03 +0000 Subject: [PATCH] Branch: b1_4_smallfix Add fix for SUPERBH_MAX_USERS b=4505 --- .../kernel_patches/patches/blkdev_tunables-2.4.21-chaos.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lustre/kernel_patches/patches/blkdev_tunables-2.4.21-chaos.patch b/lustre/kernel_patches/patches/blkdev_tunables-2.4.21-chaos.patch index 2a834ac..9349422 100644 --- a/lustre/kernel_patches/patches/blkdev_tunables-2.4.21-chaos.patch +++ b/lustre/kernel_patches/patches/blkdev_tunables-2.4.21-chaos.patch @@ -32,3 +32,14 @@ /* * 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); -- 1.8.3.1