mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
Microoptimizations
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -9025,7 +9025,8 @@ int __init scst_lib_init(void)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
|
||||
scsi_io_context_cache = kmem_cache_create("scst_scsi_io_context",
|
||||
sizeof(struct scsi_io_context),
|
||||
0, 0, NULL);
|
||||
__alignof__(struct scsi_io_context),
|
||||
0, NULL);
|
||||
if (!scsi_io_context_cache) {
|
||||
PRINT_ERROR("%s", "Can't init scsi io context cache");
|
||||
res = -ENOMEM;
|
||||
|
||||
@@ -1373,7 +1373,8 @@ static void sgv_pool_init_cache(struct sgv_pool *pool, int cache_num)
|
||||
sizeof(pool->cache_names[cache_num]),
|
||||
"%s-%uK", pool->name, (pages << PAGE_SHIFT) >> 10);
|
||||
pool->caches[cache_num] = kmem_cache_create(
|
||||
pool->cache_names[cache_num], size, 0, SCST_SLAB_FLAGS, NULL
|
||||
pool->cache_names[cache_num], size,
|
||||
__alignof__(struct sgv_pool_obj), SCST_SLAB_FLAGS, NULL
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23))
|
||||
, NULL);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user