mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
521ddeaecc
commit
f874903a35
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user