From: Ezequiel Garcia Date: Mon, 22 Oct 2012 12:04:31 +0000 (-0300) Subject: mm/slob: Use free_page instead of put_page for page-size kmalloc allocations X-Git-Tag: v3.8-rc1~62^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf9864b1382851d90c7c505f8441c8928f1469e;p=pandora-kernel.git mm/slob: Use free_page instead of put_page for page-size kmalloc allocations When freeing objects, the slob allocator currently free empty pages calling __free_pages(). However, page-size kmallocs are disposed using put_page() instead. It makes no sense to call put_page() for kernel pages that are provided by the object allocator, so we shouldn't be doing this ourselves. This is based on: commit d9b7f22623b5fa9cc189581dcdfb2ac605933bf4 Author: Glauber Costa slub: use free_page instead of put_page for freeing kmalloc allocation Cc: Christoph Lameter Cc: Pekka Enberg Cc: Matt Mackall Acked-by: Glauber Costa Signed-off-by: Ezequiel Garcia Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed