[Intel-gfx] [PATCH 6/9] drm/i915: Add support for stealing purgable stolen pages

Chris Wilson chris at chris-wilson.co.uk
Mon Dec 14 02:13:26 PST 2015


On Mon, Dec 14, 2015 at 11:16:08AM +0530, ankitprasad.r.sharma at intel.com wrote:
> @@ -2039,6 +2052,8 @@ struct drm_i915_gem_object {
>  	struct list_head obj_exec_link;
>  
>  	struct list_head batch_pool_link;
> +	/** Used during stolen memory allocations to temporarily hold a ref */
> +	struct list_head stolen_link;

It would be very useful to me if you could rename this tmp_link.

/** Used by eviction/debugfs only under the struct_mutex when the caller
 * is certain they are the only users of this list.
 */

> +	INIT_LIST_HEAD(&obj->stolen_link);

Doesn't require init.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list