diff -uprN block-2.6-export-a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c --- block-2.6-export-a/drivers/block/aoe/aoeblk.c 2005-01-19 14:29:31.000000000 -0500 +++ patch-block-2.6-20050119-export/linux/drivers/block/aoe/aoeblk.c 2005-01-19 15:21:53.000000000 -0500 @@ -245,7 +252,7 @@ aoeblk_gdalloc(void *vp) d->fw_ver, (long long)d->ssize); } -void __exit +void aoeblk_exit(void) { kmem_cache_destroy(buf_pool_cache); @@ -254,19 +261,12 @@ aoeblk_exit(void) int __init aoeblk_init(void) { - int n; - buf_pool_cache = kmem_cache_create("aoe_bufs", sizeof(struct buf), 0, 0, NULL, NULL); if (buf_pool_cache == NULL) return -ENOMEM; - n = register_blkdev(AOE_MAJOR, DEVICE_NAME); - if (n < 0) { - printk(KERN_ERR "aoe: aoeblk_init: can't register major\n"); - return n; - } return 0; }