Messages in this thread Patch in this message | | | Date | Sun, 10 Aug 2003 20:07:41 +0900 (JST) | Subject | [PATCH 4/9] convert drivers/block to virt_to_pageoff() | From | YOSHIFUJI Hideaki / 吉藤英明 <> |
| |
[4/9] convert drivers/block to virt_to_pageoff().
Index: linux-2.6/drivers/block/cryptoloop.c =================================================================== RCS file: /home/cvs/linux-2.5/drivers/block/cryptoloop.c,v retrieving revision 1.3 diff -u -r1.3 cryptoloop.c --- linux-2.6/drivers/block/cryptoloop.c 17 Jul 2003 17:43:53 -0000 1.3 +++ linux-2.6/drivers/block/cryptoloop.c 10 Aug 2003 08:40:52 -0000 @@ -112,11 +112,11 @@ iv[0] = cpu_to_le32(IV & 0xffffffff); sg_in.page = virt_to_page(in); - sg_in.offset = (unsigned long)in & ~PAGE_MASK; + sg_in.offset = virt_to_pageoff(in); sg_in.length = sz; sg_out.page = virt_to_page(out); - sg_out.offset = (unsigned long)out & ~PAGE_MASK; + sg_out.offset = virt_to_pageoff(out); sg_out.length = sz; encdecfunc(tfm, &sg_out, &sg_in, sz, (u8 *)iv); -- Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org> GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |