summaryrefslogtreecommitdiffstats
path: root/lib/metadata/snapshot_manip.c
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2002-02-25 11:55:39 +0000
committerJoe Thornber <thornber@redhat.com>2002-02-25 11:55:39 +0000
commit7b9e789f9c213b4e7c9b0c9339af392b88ae3718 (patch)
tree1ab37d94f68e09fcc7805930597841108d6437f8 /lib/metadata/snapshot_manip.c
parentb00094bdeb1774b868094b83be66da183986abe7 (diff)
downloadlvm2-7b9e789f9c213b4e7c9b0c9339af392b88ae3718.tar.gz
lvm2-7b9e789f9c213b4e7c9b0c9339af392b88ae3718.tar.xz
lvm2-7b9e789f9c213b4e7c9b0c9339af392b88ae3718.zip
o Remove the vg argument from find_cow
Diffstat (limited to 'lib/metadata/snapshot_manip.c')
-rw-r--r--lib/metadata/snapshot_manip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/snapshot_manip.c b/lib/metadata/snapshot_manip.c
index 0d490e62..a9552039 100644
--- a/lib/metadata/snapshot_manip.c
+++ b/lib/metadata/snapshot_manip.c
@@ -36,12 +36,12 @@ int lv_is_cow(struct logical_volume *lv)
return 0;
}
-struct snapshot *find_cow(struct volume_group *vg, struct logical_volume *lv)
+struct snapshot *find_cow(struct logical_volume *lv)
{
struct list *slh;
struct snapshot *s;
- list_iterate (slh, &vg->snapshots) {
+ list_iterate (slh, &lv->vg->snapshots) {
s = list_item(slh, struct snapshot_list)->snapshot;
if (s->cow == lv)
return s;