+ memcg-slab-separate-memcg-vs-root-cache-creation-paths.patch added to -mm tree
Subsystems (3)
[email protected]
maintainerSubject: + memcg-slab-separate-memcg-vs-root-cache-creation-paths.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 21 Feb 2014 14:29:13 -0800
The patch titled
Subject: memcg, slab: separate memcg vs root cache creation paths
has been added to the -mm tree. Its filename is
memcg-slab-separate-memcg-vs-root-cache-creation-paths.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/memcg-slab-separate-memcg-vs-root-cache-creation-paths.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/memcg-slab-separate-memcg-vs-root-cache-creation-paths.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Vladimir Davydov <[email protected]>
Subject: memcg, slab: separate memcg vs root cache creation paths
Memcg-awareness turned kmem_cache_create() into a dirty interweaving of memcg-only and except-for-memcg calls. To clean this up, let's move the code responsible for memcg cache creation to a separate function.
---
include/linux/memcontrol.h | 6 - include/linux/slab.h | 6 - mm/memcontrol.c | 7 - mm/slab_common.c | 187 ++++++++++++++++++++--------------- 4 files changed, 111 insertions(+), 95 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~memcg-slab-separate-memcg-vs-root-cache-creation-paths +0 -6
@@ -644,12 +644,6 @@ static inline int memcg_cache_id(structreturn -1 ; } -static inline char *memcg_create_cache_name (struct mem_cgroup *memcg, -struct kmem_cache *root_cache) -{ -return NULL ; -} -static inline int memcg_alloc_cache_params (struct mem_cgroup *memcg,struct kmem_cache *s,struct kmem_cache *root_cache) {
include/linux/slab.h renamed from include/linux/slab.h~memcg-slab-separate-memcg-vs-root-cache-creation-paths +3 -3
@@ -115,9 +115,9 @@ int slab_is_available(void);struct kmem_cache *kmem_cache_create (const char *,size_t ,size_t ,unsigned long ,void (*)(void *)); -struct kmem_cache * -kmem_cache_create_memcg (struct mem_cgroup *,const char *,size_t ,size_t , -unsigned long ,void (*)(void *),struct kmem_cache *); +#ifdef CONFIG_MEMCG_KMEM +void kmem_cache_create_memcg (struct mem_cgroup *,struct kmem_cache *); +#endif void kmem_cache_destroy (struct kmem_cache *);int kmem_cache_shrink (struct kmem_cache *);void kmem_cache_free (struct kmem_cache *,void *);
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-slab-separate-memcg-vs-root-cache-creation-paths +1 -6
@@ -3494,13 +3494,8 @@ static void memcg_create_cache_work_func struct create_work *cw = container_of(w, struct create_work, work);struct mem_cgroup *memcg = cw->memcg;struct kmem_cache *cachep = cw->cachep; -struct kmem_cache *new; - new =kmem_cache_create_memcg (memcg, cachep->name, - cachep->object_size, cachep->align, - cachep->flags & ~SLAB_PANIC , cachep->ctor, cachep); -if (new) - new->allocflags |= __GFP_KMEMCG; +kmem_cache_create_memcg (memcg, cachep);css_put (&memcg->css);kfree (cw); }
mm/slab_common.c renamed from mm/slab_common.c~memcg-slab-separate-memcg-vs-root-cache-creation-paths +107 -80
252 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-vmscan-respect-numa-policy-mask-when-shrinking-slab-on-direct-reclaim.patch mm-vmscan-move-call-to-shrink_slab-to-shrink_zones.patch mm-vmscan-remove-shrink_control-arg-from-do_try_to_free_pages.patch mm-vmscan-shrink_slab-rename-max_pass-freeable.patch kobject-dont-block-for-each-kobject_uevent.patch kobject-dont-block-for-each-kobject_uevent-v2.patch slub-do-not-drop-slab_mutex-for-sysfs_slab_add.patch memcg-slab-never-try-to-merge-memcg-caches.patch memcg-slab-cleanup-memcg-cache-creation.patch memcg-slab-separate-memcg-vs-root-cache-creation-paths.patch memcg-slab-unregister-cache-from-memcg-before-starting-to-destroy-it.patch memcg-slab-do-not-destroy-children-caches-if-parent-has-aliases.patch slub-adjust-memcg-caches-when-creating-cache-alias.patch slub-rework-sysfs-layout-for-memcg-caches.patch
linux-next.patch