Re: [PATCH 2/4] drm/mm: Add a search-by-address variant to only inspect a single hole

2018-05-18 Thread Joonas Lahtinen
Quoting Chris Wilson (2018-05-13 10:50:08) > Searching for an available hole by address is slow, as there no > guarantee that a hole will be available and so we must walk over all > nodes in the rbtree before we determine the search was futile. In many > cases, the caller doesn't strictly care for

[PATCH 2/4] drm/mm: Add a search-by-address variant to only inspect a single hole

2018-05-13 Thread Chris Wilson
Searching for an available hole by address is slow, as there no guarantee that a hole will be available and so we must walk over all nodes in the rbtree before we determine the search was futile. In many cases, the caller doesn't strictly care for the highest available hole and was just