[DRBD-cvs] svn commit by lars - r2168 - trunk/drbd - vmalloced space may not be virt_to_pag()ed, but must be

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Thu Apr 20 10:45:38 CEST 2006


Author: lars
Date: 2006-04-20 10:45:37 +0200 (Thu, 20 Apr 2006)
New Revision: 2168

Modified:
   trunk/drbd/drbd_bitmap.c
Log:
vmalloced space may not be virt_to_pag()ed, but must be vmalloc_to_page()ed,
thanks to Ard van Breemen

Modified: trunk/drbd/drbd_bitmap.c
===================================================================
--- trunk/drbd/drbd_bitmap.c	2006-04-19 12:55:09 UTC (rev 2167)
+++ trunk/drbd/drbd_bitmap.c	2006-04-20 08:45:37 UTC (rev 2168)
@@ -633,7 +633,7 @@
 	/* we are process context. we always get a bio */
 	/* THINK: do we need GFP_NOIO here? */
 	struct bio *bio = bio_alloc(GFP_KERNEL, 1);
-	struct page *page = virt_to_page((char*)(b->bm) + (PAGE_SIZE*page_nr));
+	struct page *page = vmalloc_to_page((char*)(b->bm) + (PAGE_SIZE*page_nr));
 	unsigned int len;
 	sector_t on_disk_sector = mdev->bc->md.md_offset + mdev->bc->md.bm_offset;
 	on_disk_sector += ((sector_t)page_nr) << (PAGE_SHIFT-9);



More information about the drbd-cvs mailing list