]> git.pld-linux.org Git - packages/truecrypt.git/commitdiff
- the second arg of INIT_WORK should be a func with arg of
authormguevara <mguevara@pld-linux.org>
Wed, 7 Mar 2007 14:01:00 +0000 (14:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  struct work_struct * type

Changed files:
    truecrypt-init_work-2.6.20-fix.patch -> 1.2

truecrypt-init_work-2.6.20-fix.patch

index e261c3585937b259d30e71edff0bc0a6e3d09f4c..fbedf984279c24e27d9020fd3f964385832f6b45 100644 (file)
@@ -1,7 +1,24 @@
-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 *
+diff -NurpP --minimal truecrypt-4.2a/Linux/Kernel/Dm-target.c truecrypt-4.2a.b/Linux/Kernel/Dm-target.c
+--- truecrypt-4.2a/Linux/Kernel/Dm-target.c    2007-03-07 15:07:25.000000000 +0100
++++ truecrypt-4.2a.b/Linux/Kernel/Dm-target.c  2007-03-07 15:16:08.000000000 +0100
+@@ -380,10 +380,15 @@ static void dereference_bio_ctx (struct 
+       mempool_free (bc, tc->bio_ctx_pool);
+ }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
++static void work_process(struct work_struct *qdata)
++{
++      struct bio_ctx *bc = container_of(qdata, struct bio_ctx, work);
++#else
+ static void work_process (void *qdata)
+ {
+       struct bio_ctx *bc = (struct bio_ctx *) qdata;
++#endif /* LINUX_VERSION_CODE >= 2.6.20 */
+       struct target_ctx *tc = (struct target_ctx *) bc->target->private;
+       struct bio_vec *bv;
+       u64 sec_no = bc->crypto_sector;
+@@ -439,7 +444,11 @@ static int truecrypt_endio (struct bio *
                bio_put (bio);
  
                // Queue decryption to leave completion interrupt ASAP
This page took 0.05046 seconds and 4 git commands to generate.