diff options
author | Michel Lespinasse <walken@google.com> | 2012-08-14 23:53:20 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-08-16 08:32:19 +0200 |
commit | 48f2474144ac708f1faad97e82a863ca8214b602 (patch) | |
tree | 93ee03853f20d4dafe041d9ddf5641bd7437559a /mm/slab_common.c | |
parent | slub: use free_page instead of put_page for freeing kmalloc allocation (diff) | |
download | linux-48f2474144ac708f1faad97e82a863ca8214b602.tar.xz linux-48f2474144ac708f1faad97e82a863ca8214b602.zip |
slab: do not call compound_head() in page_get_cache()
page_get_cache() does not need to call compound_head(), as its unique
caller virt_to_slab() already makes sure to return a head page.
Additionally, removing the compound_head() call makes page_get_cache()
consistent with page_get_slab().
Signed-off-by: Michel Lespinasse <walken@google.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@kernel.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions