]> git.baikalelectronics.ru Git - kernel.git/commit
slab: do not call compound_head() in page_get_cache()
authorMichel Lespinasse <walken@google.com>
Tue, 14 Aug 2012 21:53:20 +0000 (14:53 -0700)
committerPekka Enberg <penberg@kernel.org>
Thu, 16 Aug 2012 06:32:19 +0000 (09:32 +0300)
commit46e603a0c7d872b93e84f6ced476a0594fa821c4
tree93ee03853f20d4dafe041d9ddf5641bd7437559a
parent33d96135446ea5aa36dc6c622c54f7e345ed4354
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>
mm/slab.c