1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: use macro lv_is_visible()

This commit is contained in:
Zdenek Kabelac 2015-01-28 13:34:12 +01:00
parent 553f37da71
commit d2d3f0d747

View File

@ -2295,7 +2295,7 @@ int add_areas_line(struct dev_manager *dm, struct lv_segment *seg,
* is used in the CTR table. * is used in the CTR table.
*/ */
if ((seg_type(seg, s) == AREA_UNASSIGNED) || if ((seg_type(seg, s) == AREA_UNASSIGNED) ||
((seg_lv(seg, s)->status & VISIBLE_LV) && (lv_is_visible(seg_lv(seg, s)) &&
!(seg_lv(seg, s)->status & LVM_WRITE))) { !(seg_lv(seg, s)->status & LVM_WRITE))) {
/* One each for metadata area and data area */ /* One each for metadata area and data area */
if (!dm_tree_node_add_null_area(node, 0) || if (!dm_tree_node_add_null_area(node, 0) ||