SOURCES: truecrypt-2.6.23.patch (NEW) - patch for kernels 2.6.23+

zbyniu zbyniu at pld-linux.org
Mon Apr 14 10:12:41 CEST 2008


Author: zbyniu                       Date: Mon Apr 14 08:12:41 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch for kernels 2.6.23+

---- Files affected:
SOURCES:
   truecrypt-2.6.23.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/truecrypt-2.6.23.patch
diff -u /dev/null SOURCES/truecrypt-2.6.23.patch:1.1
--- /dev/null	Mon Apr 14 10:12:41 2008
+++ SOURCES/truecrypt-2.6.23.patch	Mon Apr 14 10:12:36 2008
@@ -0,0 +1,26 @@
+--- truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c	2008-04-14 09:49:01.201141303 +0200
++++ truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c	2008-04-14 09:48:24.000000000 +0200
+@@ -399,7 +399,11 @@ static void dereference_bio_ctx (struct 
+ 	if (!atomic_dec_and_test (&bc->ref_count))
+ 		return;
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
++	bio_endio (bc->orig_bio, bc->error);
++#else
+ 	bio_endio (bc->orig_bio, bc->orig_bio->bi_size, bc->error);
++#endif
+ 	mempool_free (bc, tc->bio_ctx_pool);
+ }
+ 
+@@ -680,7 +680,11 @@ int __init dm_truecrypt_init(void)
+ 		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);
++#else
+	bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL, NULL);
++#endif
+ 	if (!bio_ctx_cache)
+ 	{
+ 		error ("kmem_cache_create failed");
================================================================


More information about the pld-cvs-commit mailing list