From: Ezequiel Garcia Date: Fri, 19 Oct 2012 12:33:10 +0000 (-0300) Subject: mm/slob: Drop usage of page->private for storing page-sized allocations X-Git-Tag: v3.8-rc1~62^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=999d8795d438d396936811b185428d70b7b7de6d;p=pandora-kernel.git 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 Cc: Matt Mackall Acked-by: Christoph Lameter Signed-off-by: Ezequiel Garcia Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed