[SCSI] tgt: use KMEM_CACHE macro
authorFUJITA Tomonori <[email protected]>
Thu, 10 Apr 2008 14:48:14 +0000 (23:48 +0900)
committerJames Bottomley <[email protected]>
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 <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
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;