]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] tgt: use KMEM_CACHE macro
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 10 Apr 2008 14:48:14 +0000 (23:48 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 16 Apr 2008 14:22:19 +0000 (09:22 -0500)
This uses new KMEM_CACHE() macro instead of kmem_cache_create directly
to simplify slab cache creation.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_tgt_lib.c

index a0f308bd145b062e2403af9b57a2c32d92108ca0..ee8496aa0336682eedc40879dfca871d6551ff3c 100644 (file)
@@ -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;