mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: use macro lv_is_visible()
This commit is contained in:
parent
553f37da71
commit
d2d3f0d747
@ -2295,7 +2295,7 @@ int add_areas_line(struct dev_manager *dm, struct lv_segment *seg,
|
||||
* is used in the CTR table.
|
||||
*/
|
||||
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))) {
|
||||
/* One each for metadata area and data area */
|
||||
if (!dm_tree_node_add_null_area(node, 0) ||
|
||||
|
Loading…
Reference in New Issue
Block a user