patch-2.4.25 linux-2.4.25/drivers/md/lvm.c
Next file: linux-2.4.25/drivers/md/raid1.c
Previous file: linux-2.4.25/drivers/md/lvm-snap.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/md/lvm.c
- Orig date:
2003-11-28 10:26:20.000000000 -0800
diff -urN linux-2.4.24/drivers/md/lvm.c linux-2.4.25/drivers/md/lvm.c
@@ -2594,8 +2594,9 @@
new_lv->lv_block_exception[e].
rsector_org, new_lv);
- vg_ptr->pe_allocated -= old_lv->lv_allocated_le;
+ vg_ptr->pe_allocated -= old_lv->lv_allocated_snapshot_le;
vg_ptr->pe_allocated += new_lv->lv_allocated_le;
+ old_lv->lv_allocated_snapshot_le = new_lv->lv_allocated_le;
} else {
vfree(old_lv->lv_current_pe);
vfree(old_lv->lv_snapshot_hash_table);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)