From: Eric A. <er...@an...> - 2009-04-04 17:25:21
|
On Fri, 2009-04-03 at 18:08 -0700, Keith Packard wrote: > On Fri, 2009-04-03 at 17:03 -0700, Eric Anholt wrote: > > > + obj_priv->bit_17 = kmalloc(page_count, GFP_KERNEL); > > seems like you could save a bit of memory here by using 1 bit per page > instead of a byte. Before, I was figuring it was better to have easy code than memory optimal code in my infrequently-tested workaround. Since recent notes about kmalloc limits, I'll switch to using bitmap.h. -- Eric Anholt er...@an... eri...@in... |