if (num_pages + kgem->aperture > kgem->aperture_high) {
DBG(("%s: final aperture usage (%d) is greater than high water mark (%d)\n",
__FUNCTION__, num_pages + kgem->aperture, kgem->aperture_high));
- return aperture_check(kgem, num_pages + kgem->aperture);
+ if (!aperture_check(kgem, num_pages + kgem->aperture))
+ return false;
}
return kgem_flush(kgem, flush);
if (kgem->aperture + num_pages(bo) > kgem->aperture_high - kgem->aperture_fenced) {
DBG(("%s: final aperture usage (%d) is greater than high water mark (%d)\n",
__FUNCTION__, num_pages(bo) + kgem->aperture, kgem->aperture_high));
- return aperture_check(kgem, num_pages(bo) + kgem->aperture + kgem->aperture_fenced);
+ if (!aperture_check(kgem, num_pages(bo) + kgem->aperture + kgem->aperture_fenced))
+ return false;
}
return kgem_flush(kgem, bo->flush);
if (num_pages + kgem->aperture > kgem->aperture_high - kgem->aperture_fenced) {
DBG(("%s: final aperture usage (%d) is greater than high water mark (%d)\n",
__FUNCTION__, num_pages + kgem->aperture, kgem->aperture_high));
- return aperture_check(kgem, num_pages + kgem->aperture + kgem->aperture_fenced);
+ if (!aperture_check(kgem, num_pages + kgem->aperture + kgem->aperture_fenced))
+ return false;
}
return kgem_flush(kgem, flush);