diff options
author | Alasdair G Kergon <agk@redhat.com> | 2012-06-27 20:07:04 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-06-27 22:11:54 +0100 |
commit | e59f6981e6547fcffc8bd86b435dac3e805b9fc0 (patch) | |
tree | 510b06fa889afa2eeba20f2f367b0a63d967d210 /lib/metadata/pv_alloc.h | |
parent | a5ddb347e569a953d6732d8d9f72857a560b5bcd (diff) | |
download | lvm2-e59f6981e6547fcffc8bd86b435dac3e805b9fc0.tar.gz lvm2-e59f6981e6547fcffc8bd86b435dac3e805b9fc0.tar.xz lvm2-e59f6981e6547fcffc8bd86b435dac3e805b9fc0.zip |
discards: split discard from release_pv_segment
Separate discard_pv_segment out of release_pv_segment
Diffstat (limited to 'lib/metadata/pv_alloc.h')
-rw-r--r-- | lib/metadata/pv_alloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/metadata/pv_alloc.h b/lib/metadata/pv_alloc.h index d894f313..23184734 100644 --- a/lib/metadata/pv_alloc.h +++ b/lib/metadata/pv_alloc.h @@ -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); |