mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Move priority check in front
Just a minor code mode - make a test for priority before more complex uuid checks.
This commit is contained in:
parent
9a8f192a38
commit
a5a31ce947
@ -1419,6 +1419,9 @@ int dm_tree_activate_children(struct dm_tree_node *dnode,
|
||||
|
||||
for (priority = 0; priority < 3; priority++) {
|
||||
while ((child = dm_tree_next_child(&handle, dnode, 0))) {
|
||||
if (priority != child->activation_priority)
|
||||
continue;
|
||||
|
||||
if (!(uuid = dm_tree_node_get_uuid(child))) {
|
||||
stack;
|
||||
continue;
|
||||
@ -1427,9 +1430,6 @@ int dm_tree_activate_children(struct dm_tree_node *dnode,
|
||||
if (!_uuid_prefix_matches(uuid, uuid_prefix, uuid_prefix_len))
|
||||
continue;
|
||||
|
||||
if (priority != child->activation_priority)
|
||||
continue;
|
||||
|
||||
if (!(name = dm_tree_node_get_name(child))) {
|
||||
stack;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user