Skip to contentSkip to conversation

master - discards: split discard from release_pv_segment

PATCH Alasdair Kergon 1 participant 1 message Jun 28, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e59f6981e6547fcffc8bd86b435dac3e805b9fc0
Commit:        e59f6981e6547fcffc8bd86b435dac3e805b9fc0
Parent:        a5ddb347e569a953d6732d8d9f72857a560b5bcd
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Wed Jun 27 20:07:04 2012 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Wed Jun 27 22:11:54 2012 +0100

discards: split discard from release_pv_segment

Separate discard_pv_segment out of release_pv_segment

---
 lib/metadata/pv_alloc.h |    1 +
 lib/metadata/pv_manip.c |   58 ++++++++++++++++++++++++++++------------------
 2 files changed, 36 insertions(+), 23 deletions(-)
lib/metadata/pv_alloc.h +1 -0
index d894f31..2318473 100644
@@ -23,6 +23,7 @@ struct pv_segment *assign_peg_to_lvseg(struct physical_volume *pv, uint32_t pe,
 int pv_split_segment(struct dm_pool *mem,
 		     struct physical_volume *pv, uint32_t pe,
 		     struct pv_segment **pvseg_allocated);
+int discard_pv_segment(struct pv_segment *peg, uint32_t discard_area_reduction);
 int release_pv_segment(struct pv_segment *peg, uint32_t area_reduction);
 int check_pv_segments(struct volume_group *vg);
 void merge_pv_segments(struct pv_segment *peg1, struct pv_segment *peg2);
lib/metadata/pv_manip.c +35 -23

75 lines not on this page · raw message