[Intel-gfx] [PATCH] drm/i915: allocate large pointer arrays with vmalloc
Jesse Barnes
jbarnes at virtuousgeek.org
Sat May 9 01:02:54 CEST 2009
On Fri, 08 May 2009 15:28:47 -0700
Keith Packard <keithp at keithp.com> wrote:
> On Fri, 2009-05-08 at 14:51 -0700, Jesse Barnes wrote:
>
> > +static __inline void drm_free_large(void *ptr, int size)
> > +{
> > + if (size <= PAGE_SIZE)
> > + return kfree(ptr);
> > +
> > + vfree(ptr);
> > +}
>
> Ick. Taking a size here is mean. And error prone.
Yes, suggestions for alternatives?
--
Jesse Barnes, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list