View | Details | Raw Unified
Collapse All | Expand All

(-) truecrypt-4.3a-source-code.org/Linux/Kernel/Dm-target.c (+10 lines)
 Lines 375-381   static void dereference_bio_ctx (struct Link Here 
	if (!atomic_dec_and_test (&bc->ref_count))
	if (!atomic_dec_and_test (&bc->ref_count))
		return;
		return;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
	bio_endio (bc->orig_bio, bc->orig_bio->bi_size, bc->error);
	bio_endio (bc->orig_bio, bc->orig_bio->bi_size, bc->error);
#else
        bio_endio (bc->orig_bio, bc->orig_bio->bi_size);
#endif
	mempool_free (bc, tc->bio_ctx_pool);
	mempool_free (bc, tc->bio_ctx_pool);
}
}
 Lines 656-662   int __init dm_truecrypt_init(void) Link Here 
		goto err;
		goto err;
	}
	}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
	bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL, NULL);
	bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL, NULL);
#else
	bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL);
#endif
	if (!bio_ctx_cache)
	if (!bio_ctx_cache)
	{
	{
		error ("kmem_cache_create failed");
		error ("kmem_cache_create failed");