static void mark_request_serialising(BdrvTrackedRequest *req, uint64_t align)

{

    int64_t overlap_offset = req->offset & ~(align - 1);

    unsigned int overlap_bytes = ROUND_UP(req->offset + req->bytes, align)

                               - overlap_offset;



    if (!req->serialising) {

        req->bs->serialising_in_flight++;

        req->serialising = true;

    }



    req->overlap_offset = MIN(req->overlap_offset, overlap_offset);

    req->overlap_bytes = MAX(req->overlap_bytes, overlap_bytes);

}

static void mark_request_serialising(BdrvTrackedRequest *req, uint64_t align)

{

    int64_t overlap_offset = req->offset & ~(align - 1);

    unsigned int overlap_bytes = ROUND_UP(req->offset + req->bytes, align)

                               - overlap_offset;



    if (!req->serialising) {

        req->bs->serialising_in_flight++;

        req->serialising = true;

    }



    req->overlap_offset = MIN(req->overlap_offset, overlap_offset);

    req->overlap_bytes = MAX(req->overlap_bytes, overlap_bytes);

}

static void FUNC_0(BdrvTrackedRequest *VAR_0, uint64_t VAR_1)

{

    int64_t overlap_offset = VAR_0->offset & ~(VAR_1 - 1);

    unsigned int VAR_2 = ROUND_UP(VAR_0->offset + VAR_0->bytes, VAR_1)

                               - overlap_offset;



    if (!VAR_0->serialising) {

        VAR_0->bs->serialising_in_flight++;

        VAR_0->serialising = true;

    }



    VAR_0->overlap_offset = MIN(VAR_0->overlap_offset, overlap_offset);

    VAR_0->VAR_2 = MAX(VAR_0->VAR_2, VAR_2);

}

static void FUNC_0(BdrvTrackedRequest *VAR_0, uint64_t VAR_1)
{ int64_t overlap_offset = VAR_0->offset & ~(VAR_1 - 1); unsigned int VAR_2 = ROUND_UP(VAR_0->offset + VAR_0->bytes, VAR_1)
- overlap_offset; if (!VAR_0->serialising) { VAR_0->bs->serialising_in_flight++; VAR_0->serialising = true; } VAR_0->overlap_offset = MIN(VAR_0->overlap_offset, overlap_offset); VAR_0->VAR_2 = MAX(VAR_0->VAR_2, VAR_2); }