1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

Add stack trace for lv_reduce

Use common code call with stack trace.

TODO: maybe the release_lv_segment_area()
should be actually able to return error code to upper level.
This commit is contained in:
Zdenek Kabelac 2012-03-01 10:09:36 +00:00
parent 521ddeaecc
commit f874903a35

View File

@ -312,13 +312,10 @@ void release_lv_segment_area(struct lv_segment *seg, uint32_t s,
return;
}
if (seg_lv(seg, s)->status & MIRROR_IMAGE) {
lv_reduce(seg_lv(seg, s), area_reduction);
return;
}
if (seg_lv(seg, s)->status & THIN_POOL_DATA) {
lv_reduce(seg_lv(seg, s), area_reduction);
if ((seg_lv(seg, s)->status & MIRROR_IMAGE) ||
(seg_lv(seg, s)->status & THIN_POOL_DATA)) {
if (!lv_reduce(seg_lv(seg, s), area_reduction))
stack; /* FIXME: any upper level reporting */
return;
}