summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorEzequiel Garcia <elezegarcia@gmail.com>2012-10-19 14:33:10 +0200
committerPekka Enberg <penberg@kernel.org>2012-10-31 07:50:43 +0100
commit999d8795d438d396936811b185428d70b7b7de6d (patch)
treeb63098f47faa341ec81cb9f07a47b986898d09d9 /mm/slab.c
parentslub: Commonize slab_cache field in struct page (diff)
downloadlinux-999d8795d438d396936811b185428d70b7b7de6d.tar.xz
linux-999d8795d438d396936811b185428d70b7b7de6d.zip
mm/slob: Drop usage of page->private for storing page-sized allocations
This field was being used to store size allocation so it could be retrieved by ksize(). However, it is a bad practice to not mark a page as a slab page and then use fields for special purposes. There is no need to store the allocated size and ksize() can simply return PAGE_SIZE << compound_order(page). Cc: Pekka Enberg <penberg@kernel.org> Cc: Matt Mackall <mpm@selenic.com> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions