drm: mm: add helper to unwind scan state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 18 Feb 2011 16:59:15 +0000 (17:59 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Feb 2011 00:32:57 +0000 (10:32 +1000)
commitae0cec2880a4dc6d90c7f8392bdc6705988389ca
tree02a36c6ff5eb3e9f0554d9b5134ab374929c61fb
parentb0b7af1884b7d807a3504804f9825d472de78708
drm: mm: add helper to unwind scan state

With the switch to implicit free space accounting one pointer
got unused when scanning. Use it to create a single-linked list
to ensure correct unwinding of the scan state.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_mm.c
include/drm/drm_mm.h