diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-02 19:43:35 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-03 14:19:34 +0100 |
commit | 6c32ced6572b857ca954601757268dc4bb688b2f (patch) | |
tree | 451785782fb788a47c4d5cacb2c7aa97c662d312 | |
parent | 0ba5571bab4ea0d9e1f30bd35033033bdb477417 (diff) | |
download | lvm2-6c32ced6572b857ca954601757268dc4bb688b2f.tar.gz |
cleanup: use lv_is_pool
Use lv_is_pool() to detect both pool versions.
-rw-r--r-- | lib/report/report.c | 4 |
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); |