Messages in this thread |  | | Date | Thu, 12 Dec 2013 17:44:18 +0000 | From | Christoph Lameter <> | Subject | Re: [RFC][PATCH 3/3] mm: slabs: reset page at free |
| |
On Wed, 11 Dec 2013, Dave Hansen wrote:
> We now have slub's ->freelist usage impinging on page->mapping's > storage space. The buddy allocator wants ->mapping to be NULL > when a page is handed back, so we have to make sure that it is > cleared. > > Note that slab already doeds this, so just create a common helper > and have all the slabs do it this way. ->mapping is right next > to ->flags, so it's virtually guaranteed to be in the L1 at this > point, so this shouldn't cost very much to do in practice.
Maybe add a common page alloc and free function in mm/slab_common.c?
All the allocators do similar things after all.
|  |