summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-11-02 19:43:35 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-11-03 14:19:34 +0100
commit6c32ced6572b857ca954601757268dc4bb688b2f (patch)
tree451785782fb788a47c4d5cacb2c7aa97c662d312
parent0ba5571bab4ea0d9e1f30bd35033033bdb477417 (diff)
downloadlvm2-6c32ced6572b857ca954601757268dc4bb688b2f.tar.gz
cleanup: use lv_is_pool
Use lv_is_pool() to detect both pool versions.
-rw-r--r--lib/report/report.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/report/report.c b/lib/report/report.c
index c74bbfa28..4f505e751 100644
--- a/lib/report/report.c
+++ b/lib/report/report.c
@@ -447,7 +447,7 @@ static int _datalv_disp(struct dm_report *rh, struct dm_pool *mem __attribute__(
const void *data, void *private __attribute__((unused)))
{
const struct logical_volume *lv = (const struct logical_volume *) data;
- const struct lv_segment *seg = (lv_is_thin_pool(lv) || lv_is_cache_pool(lv)) ? first_seg(lv) : NULL;
+ const struct lv_segment *seg = (lv_is_pool(lv)) ? first_seg(lv) : NULL;
if (seg)
return _lvname_disp(rh, mem, field, seg_lv(seg, 0), private);
@@ -460,7 +460,7 @@ static int _metadatalv_disp(struct dm_report *rh, struct dm_pool *mem __attribut
const void *data, void *private __attribute__((unused)))
{
const struct logical_volume *lv = (const struct logical_volume *) data;
- const struct lv_segment *seg = (lv_is_thin_pool(lv) || lv_is_cache_pool(lv)) ? first_seg(lv) : NULL;
+ const struct lv_segment *seg = (lv_is_pool(lv)) ? first_seg(lv) : NULL;
if (seg)
return _lvname_disp(rh, mem, field, seg->metadata_lv, private);