[linux-lvm] [PATCH][2.5] List macros update for md (10/19)
Lightweight Patch Manager
patch at luckynet.dynu.com
Sat Jun 22 11:18:01 UTC 2002
Multiple devices aren't on new list macros either...
Two times list_move, and it's done
diff -Nur thunder-2.5/drivers/md/lvm-snap.c thunder-2.5/drivers/md/lvm-snap.c
--- thunder-2.5/drivers/md/lvm-snap.c 22 Jun 2002 10:56:13 -0000 +0000
+++ thunder-2.5/drivers/md/lvm-snap.c 22 Jun 2002 10:56:13 -0000 +0000 thunder (thunder-2.5/drivers/md/lvm-snap.c 1.1 0644)
@@ -109,11 +109,9 @@ lvm_find_exception_table(kdev_t org_dev,
kdev_same(exception->rdev_org, org_dev))
{
if (i)
- {
/* fun, isn't it? :) */
- list_del(next);
- list_add(next, hash_table);
- }
+ list_move(next, hash_table);
+
ret = exception;
break;
}
diff -Nur thunder-2.5/drivers/md/md.c thunder-2.5/drivers/md/md.c
--- thunder-2.5/drivers/md/md.c 22 Jun 2002 10:56:14 -0000 +0000
+++ thunder-2.5/drivers/md/md.c 22 Jun 2002 10:56:14 -0000 +0000 thunder (thunder-2.5/drivers/md/md.c 1.1 0644)
@@ -1872,8 +1872,7 @@ static void autorun_devices(void)
continue;
}
printk(KERN_INFO "md: adding %s ...\n", partition_name(rdev->dev));
- list_del(&rdev->pending);
- list_add(&rdev->pending, &candidates);
+ list_move(&rdev->pending, &candidates);
}
}
/*
More information about the linux-lvm
mailing list