/* Check if the QED_F_NEED_CHECK bit should be set during allocating write  */
static bool qed_should_set_need_check(BDRVQEDState *s)
/* Check if the QED_F_NEED_CHECK bit should be set during allocating write  */
static bool qed_should_set_need_check(BDRVQEDState *s)
{
    if (s->bs->backing_hd) {
        return false;
    }
    return !(s->header.features & QED_F_NEED_CHECK);
}