--- linux-2.4-xfs/fs/xfs/support/kmem.c Fri Aug 23 14:22:47 2002 +++ linux-2.5-xfs/fs/xfs/support/kmem.c Thu Aug 29 03:57:16 2002 @@ -223,9 +224,14 @@ kmem_zone_zalloc(kmem_zone_t *zone, int void *ptr = NULL; repeat: - ptr = kmem_cache_zalloc(zone, flag_convert(flags)); + ptr = kmem_cache_alloc(zone, flag_convert(flags)); - if (ptr || (flags & KM_NOSLEEP)) + if (ptr) { + memset(ptr, 0, kmem_cache_size(zone)); + return ptr; + } + + if (flags & KM_NOSLEEP) return ptr; /*