On Wed, Jul 21, 2004 at 01:13:25PM -0500, Guochun Shi wrote: > hi, > > I got a warning when compiling the patched 2.6.7 kernel: > > *** Warning: "__you_cannot_kmalloc_that_much" [fs/gfs_locking/lock_gulm/lock_gulm.ko] undefined! > > not a big issue since I can use dlm, but still want to know how I can remove this warning. Yes I hit this. here's a very crude patch that will at least get you going for testing purposes. Index: gfs-kernel/src/gulm/load_info.c =================================================================== RCS file: /cvs/cluster/cluster/gfs-kernel/src/gulm/load_info.c,v retrieving revision 1.2 diff -u -r1.2 load_info.c --- gfs-kernel/src/gulm/load_info.c 12 Jul 2004 17:07:00 -0000 1.2 +++ gfs-kernel/src/gulm/load_info.c 22 Jul 2004 07:07:34 -0000 @@ -40,7 +40,7 @@ init_MUTEX (<->sender); init_completion (<->startup); atomic_set (<->locks_pending, 0); - lt->hashbuckets = 8191; + lt->hashbuckets = 100; lt->hshlk = kmalloc (sizeof (spinlock_t) * lt->hashbuckets, GFP_KERNEL); if (lt->hshlk == NULL) return -ENOMEM; patrick _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/