[DRBD-cvs] DRBD CVS: drbd by phil from
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Fri, 16 Jan 2004 18:34:30 +0100 (CET)
DRBD CVS committal
Author : phil
Host :
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_actlog.c
Log Message:
A small bugfix. (Still something in...)
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Attic/drbd_actlog.c,v
retrieving revision 1.1.2.56
retrieving revision 1.1.2.57
diff -u -3 -r1.1.2.56 -r1.1.2.57
--- drbd_actlog.c 16 Jan 2004 13:26:43 -0000 1.1.2.56
+++ drbd_actlog.c 16 Jan 2004 17:34:30 -0000 1.1.2.57
@@ -523,7 +523,7 @@
STATIC void drbd_try_clear_on_disk_bm(struct Drbd_Conf *mdev,sector_t sector,
int cleared)
{
- struct list_head *le;
+ struct list_head *le, *tmp;
struct bm_extent* ext;
struct update_odbm_work * udw;
@@ -557,7 +557,7 @@
" dirty in the on disk BM\n");
}
- list_for_each(le,&mdev->resync->lru) {
+ list_for_each_safe(le,tmp,&mdev->resync->lru) {
ext=(struct bm_extent *)list_entry(le,struct lc_element,list);
if(ext->rs_left == 0) {
ERR_IF(ext->lce.refcnt) continue;