diff options
author | Roman Gushchin <guro@fb.com> | 2020-12-30 00:15:07 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-30 00:36:49 +0100 |
commit | 1f3147b49d75b47b6be54a1e6dfa87a4921e1e51 (patch) | |
tree | 56cedce3b399e22eb0fee8f592ad77c823129a8b /mm/page_idle.c | |
parent | zlib: move EXPORT_SYMBOL() and MODULE_LICENSE() out of dfltcc_syms.c (diff) | |
download | linux-1f3147b49d75b47b6be54a1e6dfa87a4921e1e51.tar.xz linux-1f3147b49d75b47b6be54a1e6dfa87a4921e1e51.zip |
mm: slub: call account_slab_page() after slab page initialization
It's convenient to have page->objects initialized before calling into
account_slab_page(). In particular, this information can be used to
pre-alloc the obj_cgroup vector.
Let's call account_slab_page() a bit later, after the initialization of
page->objects.
This commit doesn't bring any functional change, but is required for
further optimizations.
[akpm@linux-foundation.org: undo changes needed by forthcoming mm-memcg-slab-pre-allocate-obj_cgroups-for-slab-caches-with-slab_account.patch]
Link: https://lkml.kernel.org/r/20201110195753.530157-1-guro@fb.com
Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_idle.c')
0 files changed, 0 insertions, 0 deletions