From: Daniel Vetter Date: Wed, 14 Aug 2013 12:14:04 +0000 (+0200) Subject: drm/i915: inline vma_create into lookup_or_create_vma X-Git-Tag: v3.13-rc1~76^2~114^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e656a6cba0febf12a9838882b891e1c5917c7a8b;p=pandora-kernel.git drm/i915: inline vma_create into lookup_or_create_vma In the execbuf code we don't clean up any vmas which ended up not getting bound for code simplicity. To make sure that we don't end up creating multiple vma for the same vm kill the somewhat dangerous vma_create function and inline it into lookup_or_create. This is just a safety measure to prevent surprises in the future. Also update the somewhat confused comment in the execbuf code and clarify what kind of magic is going on with a new one. v2: Keep the function separate as requested by Chris. But give it a __ prefix for paranoia and move it tighter together with the other vma stuff. Cc: Chris Wilson Cc: Ben Widawsky Acked-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed