Searched hist:fb0ff4d1baf8012e7f358daf007967d65e1f545a (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff fb0ff4d1baf8012e7f358daf007967d65e1f545a Mon Nov 07 10:35:58 CST 2022 Vladimir Sementsov-Ogievskiy <vladimir.sementsov-ogievskiy@openvz.org> block: refactor bdrv_list_refresh_perms to allow any list of nodes
We are going to increase usage of collecting nodes in a list to then update, and calling bdrv_topological_dfs() each time is not convenient, and not correct as we are going to interleave graph modifying with filling the node list.
So, let's switch to a function that takes any list of nodes, adds all their subtrees and do topological sort. And finally, refresh permissions.
While being here, make the function public, as we'll want to use it from blockdev.c in near future.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20221107163558.618889-5-vsementsov@yandex-team.ru> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|