1 Index: linux-2.4.21/drivers/addon/qla2200/qla2x00.h
2 ===================================================================
3 --- linux-2.4.21.orig/drivers/addon/qla2200/qla2x00.h 2005-06-01 22:51:57.000000000 -0400
4 +++ linux-2.4.21/drivers/addon/qla2200/qla2x00.h 2005-06-01 23:06:10.592857440 -0400
6 /* Kernel version specific template additions */
8 /* Number of segments 1 - 65535 */
9 -#define SG_SEGMENTS 32 /* Cmd entry + 6 continuations */
10 +#define SG_SEGMENTS 512 /* Cmd entry + 6 continuations */
13 * Scsi_Host_template (see hosts.h)
17 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,8)
18 -#define TEMPLATE_MAX_SECTORS max_sectors: 512,
19 +#define TEMPLATE_MAX_SECTORS max_sectors: 2048,
21 #define TEMPLATE_MAX_SECTORS
23 Index: linux-2.4.21/include/linux/blkdev.h
24 ===================================================================
25 --- linux-2.4.21.orig/include/linux/blkdev.h 2005-06-01 22:51:55.000000000 -0400
26 +++ linux-2.4.21/include/linux/blkdev.h 2005-06-01 23:07:26.186365480 -0400
29 extern char * blkdev_varyio[MAX_BLKDEV];
31 -#define MAX_SEGMENTS 128
32 +#define MAX_SEGMENTS 256
33 #define MAX_SECTORS 255
34 /* General-case limit for superbh size: */
35 -#define MAX_SUPERBH 32768 /* must fit info ->b_size right now */
36 +#define MAX_SUPERBH (1<<20) /* must fit info ->b_size right now */
38 /* Limit for superbh when we're certain it cannot be bounce-buffered: */
39 #define MAX_SUPERBH_NOBOUNCE (1024*1024) /* must fit info ->b_size right now */
40 Index: linux-2.4.21/mm/highmem.c
41 ===================================================================
42 --- linux-2.4.21.orig/mm/highmem.c 2005-06-01 22:51:50.000000000 -0400
43 +++ linux-2.4.21/mm/highmem.c 2005-06-01 23:06:10.594857136 -0400
46 * FIXME: assuming PAGE_SIZE buffer_heads
48 -#define SUPERBH_MAX_USERS (POOL_SIZE * PAGE_SIZE / MAX_SUPERBH)
49 +#define SUPERBH_MAX_USERS max(POOL_SIZE * PAGE_SIZE / MAX_SUPERBH, 1)
51 static int superbh_users;
52 static DECLARE_WAIT_QUEUE_HEAD(superbh_wait);