+ memcg-cleanup-kmem-cache-creation-destruction-functions-naming.patch added to -mm tree
Subsystems (3)
[email protected]
maintainerSubject: + memcg-cleanup-kmem-cache-creation-destruction-functions-naming.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 13 May 2014 14:45:27 -0700
The patch titled
Subject: memcg: cleanup kmem cache creation/destruction functions naming
has been added to the -mm tree. Its filename is
memcg-cleanup-kmem-cache-creation-destruction-functions-naming.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/memcg-cleanup-kmem-cache-creation-destruction-functions-naming.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/memcg-cleanup-kmem-cache-creation-destruction-functions-naming.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: cleanup kmem cache creation/destruction functions naming
Current names are rather inconsistent. Let's try to improve them.
Brief change log:
** old name ** ** new name **
kmem_cache_create_memcg memcg_create_kmem_cache memcg_kmem_create_cache memcg_regsiter_cache memcg_kmem_destroy_cache memcg_unregister_cache
kmem_cache_destroy_memcg_children memcg_cleanup_cache_paramsmem_cgroup_destroy_all_caches memcg_unregister_all_caches
create_work memcg_register_cache_work memcg_create_cache_work_func memcg_register_cache_func memcg_create_cache_enqueue memcg_schedule_register_cache
---
include/linux/memcontrol.h | 2 - include/linux/slab.h | 2 - mm/memcontrol.c | 60 ++++++++++++++++------------------- mm/slab_common.c | 12 +++---- 4 files changed, 36 insertions(+), 40 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~memcg-cleanup-kmem-cache-creation-destruction-functions-naming +1 -1
@@ -514,7 +514,7 @@ __memcg_kmem_get_cache(struct kmem_cacheint __memcg_charge_slab (struct kmem_cache *cachep,gfp_t gfp,int order);void __memcg_uncharge_slab (struct kmem_cache *cachep,int order); -int __kmem_cache_destroy_memcg_children (struct kmem_cache *s); +int __memcg_cleanup_cache_params (struct kmem_cache *s);/** * memcg_kmem_newpage_charge: verify if a new kmem allocation is allowed.
include/linux/slab.h renamed from include/linux/slab.h~memcg-cleanup-kmem-cache-creation-destruction-functions-naming +1 -1
@@ -116,7 +116,7 @@ struct kmem_cache *kmem_cache_create(con unsigned long, void (*)(void *));#ifdef CONFIG_MEMCG_KMEM -struct kmem_cache *kmem_cache_create_memcg (struct mem_cgroup *, +struct kmem_cache *memcg_create_kmem_cache (struct mem_cgroup *,struct kmem_cache *,const char *);#endif
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-cleanup-kmem-cache-creation-destruction-functions-naming +28 -32
162 lines not on this page · raw message
mm/slab_common.c renamed from mm/slab_common.c~memcg-cleanup-kmem-cache-creation-destruction-functions-naming +6 -6
@@ -261,7 +261,7 @@ EXPORT_SYMBOL(kmem_cache_create);#ifdef CONFIG_MEMCG_KMEM /* -* kmem_cache_create_memcg - Create a cache for a memory cgroup. +* memcg_create_kmem_cache - Create a cache for a memory cgroup. * @memcg: The memory cgroup the new cache is for. * @root_cache: The parent of the new cache. * @memcg_name: The name of the memory cgroup (used for naming the new cache).
@@ -270,7 +270,7 @@ EXPORT_SYMBOL(kmem_cache_create);* requests going from @memcg to @root_cache. The new cache inherits properties * from its parent. */ -struct kmem_cache *kmem_cache_create_memcg (struct mem_cgroup *memcg, +struct kmem_cache *memcg_create_kmem_cache (struct mem_cgroup *memcg,struct kmem_cache *root_cache,const char *memcg_name) {
@@ -305,7 +305,7 @@ out_unlock:return s; } -static int kmem_cache_destroy_memcg_children (struct kmem_cache *s) +static int memcg_cleanup_cache_params (struct kmem_cache *s) {int rc;
@@ -314,13 +314,13 @@ static int kmem_cache_destroy_memcg_chilreturn 0 ;mutex_unlock (&slab_mutex); - rc =__kmem_cache_destroy_memcg_children (s); + rc =__memcg_cleanup_cache_params (s);mutex_lock (&slab_mutex); return rc; }#else -static int kmem_cache_destroy_memcg_children (struct kmem_cache *s) +static int memcg_cleanup_cache_params (struct kmem_cache *s) {return 0 ; }
@@ -343,7 +343,7 @@ void kmem_cache_destroy(struct kmem_cachif (s->refcount) goto out_unlock; -if (kmem_cache_destroy_memcg_children (s) !=0 ) +if (memcg_cleanup_cache_params (s) !=0 ) goto out_unlock;list_del (&s->list);
_
Patches currently in -mm which might be from [email protected] are
slb-charge-slabs-to-kmemcg-explicitly.patch mm-get-rid-of-__gfp_kmemcg.patch mm-get-rid-of-__gfp_kmemcg-fix.patch slab-document-kmalloc_order.patch memcg-un-export-__memcg_kmem_get_cache.patch mem-hotplug-implement-get-put_online_mems.patch slab-get_online_mems-for-kmem_cache_createdestroyshrink.patch documentation-memcg-warn-about-incomplete-kmemcg-state.patch memcg-slab-do-not-schedule-cache-destruction-when-last-page-goes-away.patch memcg-slab-merge-memcg_bindrelease_pages-to-memcg_uncharge_slab.patch memcg-slab-simplify-synchronization-scheme.patch memcg-get-rid-of-memcg_create_cache_name.patch memcg-memcg_kmem_create_cache-make-memcg_name_buf.patch memcg-cleanup-kmem-cache-creation-destruction-functions-naming.patch