From: Chris Wilson Subject: Re: [PATCH 2/2] drm/i915: use drm_mm_remove_node instead of put_block Date: Mon, 1 Jul 2013 21:16:56 +0100 Message-ID: <20130701201656.GB8080@cantiga.alporthouse.com> References: <1372709154-7524-1-git-send-email-daniel.vetter@ffwll.ch> <1372709154-7524-2-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1372709154-7524-2-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: Intel Graphics Development , Ben Widawsky , DRI Development List-Id: dri-devel@lists.freedesktop.org On Mon, Jul 01, 2013 at 10:05:54PM +0200, Daniel Vetter wrote: > When converting to the preallocated drm_mm_node interfaces in > > commit dc9dd7a20fde95aa81a8307cde79c2dff9f83f3d > Author: Chris Wilson > Date: Fri Dec 7 20:37:07 2012 +0000 > > drm/i915: Preallocate the drm_mm_node prior to manipulating the GTT drm_mm > > only the allocation side was converted, but not the freeing. Fix this > up. > > Note that the only difference between put_block and remove_node is > that the former fills up the preallocation cache. Which we don't need > anyway and hence is just wasted space. > > Cc: Chris Wilson > Cc: Ben Widawsky > Signed-off-by: Daniel Vetter You learn something new every day. Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre