drm/mm: optimize find_hole() as well

Abort early if there isn't enough space to allocate from a subtree.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Link: https://patchwork.freedesktop.org/patch/370297/
This commit is contained in:
Christian König 2020-06-09 14:47:33 +02:00
commit 271e7decd7
2 changed files with 7 additions and 15 deletions