• E
    trace: Fix backwards mirror_yield parameters · 67adf4b3
    Eric Blake 提交于
    block/trace-events lists the parameters for mirror_yield
    consistently with other mirror events (cnt just after s, like in
    mirror_before_sleep; in_flight last, like in mirror_yield_in_flight).
    But the callers were passing parameters in the wrong order, leading
    to poor trace messages, including type truncation when there are
    more than 4G dirty sectors involved.  Broken since its introduction
    in commit bd48bde8.
    
    While touching this, ensure that all callers use the same type
    (uint64_t) for cnt, as a later patch will enable the compiler to do
    stricter type-checking.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
    67adf4b3
mirror.c 44.2 KB