]> git.pld-linux.org Git - packages/truecrypt.git/commitdiff
- 2.6.20 fixes for truecrypt
authormguevara <mguevara@pld-linux.org>
Tue, 27 Feb 2007 13:07:44 +0000 (13:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    truecrypt-blk_congestion_wait-2.6.20-fix.patch -> 1.1
    truecrypt-init_work-2.6.20-fix.patch -> 1.1

truecrypt-blk_congestion_wait-2.6.20-fix.patch [new file with mode: 0644]
truecrypt-init_work-2.6.20-fix.patch [new file with mode: 0644]

diff --git a/truecrypt-blk_congestion_wait-2.6.20-fix.patch b/truecrypt-blk_congestion_wait-2.6.20-fix.patch
new file mode 100644 (file)
index 0000000..e829db1
--- /dev/null
@@ -0,0 +1,32 @@
+diff -NurpP --minimal truecrypt-4.2a.orig/Linux/Kernel/Dm-target.c truecrypt-4.2a/Linux/Kernel/Dm-target.c
+--- truecrypt-4.2a.orig/Linux/Kernel/Dm-target.c       2007-02-27 14:19:40.000000000 +0100
++++ truecrypt-4.2a/Linux/Kernel/Dm-target.c    2007-02-27 14:24:15.000000000 +0100
+@@ -127,9 +127,13 @@ static void *malloc_wait (mempool_t *poo
+               if (p)
+                       return p;
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
++              trace (3, "congestion_wait\n");
++              congestion_wait (direction, HZ / 50);
++#else
+               trace (3, "blk_congestion_wait\n");
+               blk_congestion_wait (direction, HZ / 50);
++#endif
+       }
+ }
+@@ -504,8 +508,13 @@ static int truecrypt_map (struct dm_targ
+       trace (3, "bio_alloc (%hd)\n", bio_segments (bio));
+       while (!(bion = bio_alloc (GFP_NOIO | __GFP_NOMEMALLOC, bio_segments (bio))))
+       {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
++              trace (3, "congestion_wait\n");
++              congestion_wait (bio_data_dir (bio), HZ / 50);
++#else
+               trace (3, "blk_congestion_wait\n");
+               blk_congestion_wait (bio_data_dir (bio), HZ / 50);
++#endif
+       }
+       bion->bi_bdev = tc->dev->bdev;
diff --git a/truecrypt-init_work-2.6.20-fix.patch b/truecrypt-init_work-2.6.20-fix.patch
new file mode 100644 (file)
index 0000000..e261c35
--- /dev/null
@@ -0,0 +1,15 @@
+diff -NurpP --minimal truecrypt-4.2a.clean/Linux/Kernel/Dm-target.c truecrypt-4.2a/Linux/Kernel/Dm-target.c
+--- truecrypt-4.2a.clean/Linux/Kernel/Dm-target.c      2007-02-27 13:21:08.000000000 +0100
++++ truecrypt-4.2a/Linux/Kernel/Dm-target.c    2007-02-27 13:29:03.000000000 +0100
+@@ -435,7 +435,11 @@ static int truecrypt_endio (struct bio *
+               bio_put (bio);
+               // Queue decryption to leave completion interrupt ASAP
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
++              INIT_WORK (&bc->work, work_process);
++#else
+               INIT_WORK (&bc->work, work_process, bc);
++#endif /* LINUX_VERSION_CODE >= 2.6.20 */
+               trace (3, "queue_work (%p)\n", work_queue);
+               queue_work (work_queue, &bc->work);
+               return error;
This page took 0.170444 seconds and 4 git commands to generate.