[DRBD-cvs] svn commit by phil - r2721 - trunk/drbd - Two seconds
after commiting this patch, I saw the page_
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Tue Jan 30 14:54:42 CET 2007
Author: phil
Date: 2007-01-30 14:54:40 +0100 (Tue, 30 Jan 2007)
New Revision: 2721
Modified:
trunk/drbd/drbd_actlog.c
Log:
Two seconds after commiting this patch, I saw the page_address() call...
fixed it.
Modified: trunk/drbd/drbd_actlog.c
===================================================================
--- trunk/drbd/drbd_actlog.c 2007-01-30 13:44:54 UTC (rev 2720)
+++ trunk/drbd/drbd_actlog.c 2007-01-30 13:54:40 UTC (rev 2721)
@@ -602,7 +602,8 @@
offset = S2W(enr);
drbd_bm_get_lel( mdev, offset,
min_t(size_t,S2W(1), drbd_bm_words(mdev) - offset),
- page_address(*page) + *page_offset );
+ kmap(*page) + *page_offset );
+ kunmap(*page);
if(bio_add_page(bio, *page, MD_HARDSECT, *page_offset)!=MD_HARDSECT)
return -EIO;
More information about the drbd-cvs
mailing list