From: FUJITA Tomonori Date: Thu, 10 Apr 2008 14:48:14 +0000 (+0900) Subject: [SCSI] tgt: use KMEM_CACHE macro X-Git-Tag: v2.6.26-rc1~1140^2~18 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b312bab3b961de21c5a98bd70e04070eaa61817c;p=linux-2.6-omap-h63xx.git [SCSI] tgt: use KMEM_CACHE macro This uses new KMEM_CACHE() macro instead of kmem_cache_create directly to simplify slab cache creation. Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c index a0f308bd145..ee8496aa033 100644 --- a/drivers/scsi/scsi_tgt_lib.c +++ b/drivers/scsi/scsi_tgt_lib.c @@ -621,9 +621,7 @@ static int __init scsi_tgt_init(void) { int err; - scsi_tgt_cmd_cache = kmem_cache_create("scsi_tgt_cmd", - sizeof(struct scsi_tgt_cmd), - 0, 0, NULL); + scsi_tgt_cmd_cache = KMEM_CACHE(scsi_tgt_cmd, 0); if (!scsi_tgt_cmd_cache) return -ENOMEM;