Messages in this thread | | | Date | Fri, 5 Dec 2003 14:22:38 +0000 | From | Christoph Hellwig <> | Subject | Re: [Oops] i386 mm/slab.c (cache_flusharray) |
| |
On Fri, Dec 05, 2003 at 08:34:25PM +1100, Nathan Scott wrote: > You might be mixing up pb_pages and pb_addr there? pb_addr is > always a pointer. We need to distinguish whether it was slab > alloc'd or whether it points into page cache pages, so we know > whether to page_cache_release the pages or kfree the pointer > when we're done with the pagebuf. > > The pb_page_array works just as you describe, with a prealloc'd > array of page pointers, and pb_pages either points to the array > of to a larger kmalloc'd array as necessary.
Indeed. I'm not remembering the code as good as I hoped to :)
Sorry for the noise.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |