mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qemu/queue.h: simplify reverse access to QTAILQ
The new definition of QTAILQ does not require passing the headname, remove it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7274f01bb8
commit
eae3eb3e18
27 changed files with 49 additions and 54 deletions
|
@ -1291,7 +1291,7 @@ int64_t qmp_guest_fsfreeze_freeze_list(bool has_mountpoints,
|
|||
/* cannot risk guest agent blocking itself on a write in this state */
|
||||
ga_set_frozen(ga_state);
|
||||
|
||||
QTAILQ_FOREACH_REVERSE(mount, &mounts, FsMountList, next) {
|
||||
QTAILQ_FOREACH_REVERSE(mount, &mounts, next) {
|
||||
/* To issue fsfreeze in the reverse order of mounts, check if the
|
||||
* mount is listed in the list here */
|
||||
if (has_mountpoints) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue