1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: pass dnode to callback

Pass dnode  pointer instead of rather unknown child pointer.
The pointer is currently unused and passing child pointer
is quite undefined, while dnode has at least some usability.
This commit is contained in:
Zdenek Kabelac 2014-01-08 10:30:25 +01:00
parent 95b1af7280
commit af7297c73e

View File

@ -2619,7 +2619,7 @@ int dm_tree_preload_children(struct dm_tree_node *dnode,
dm_tree_set_cookie(dnode, 0); dm_tree_set_cookie(dnode, 0);
if (!dnode->info.exists && dnode->callback && if (!dnode->info.exists && dnode->callback &&
!dnode->callback(child, DM_NODE_CALLBACK_PRELOADED, !dnode->callback(dnode, DM_NODE_CALLBACK_PRELOADED,
dnode->callback_data)) dnode->callback_data))
return_0; return_0;
} }