Skip to contentSkip to conversation

mm/memcg: no one use charge_type

PATCH In review Alex Shi 3 participants 3 messages Sep 8, 2020

Subsystems (3)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 mm/memcg: no one use charge_type

After commit 0a31bc97c80c3f mm: memcontrol: rewrite uncharge API, no one using MEM_CGROUP_CHARGE_TYPE_xxx, let's remove them.

---
 mm/memcontrol.c | 8 --------
 1 file changed, 8 deletions(-)
mm/memcontrol.c +0 -8
index 5d52b8a88bea..d925905920bf 100644
@@ -199,14 +199,6 @@ struct mem_cgroup_event {
 #define	MEM_CGROUP_MAX_RECLAIM_LOOPS		100
 #define	MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS	2
 
-enum charge_type {
-	MEM_CGROUP_CHARGE_TYPE_CACHE = 0,
-	MEM_CGROUP_CHARGE_TYPE_ANON,
-	MEM_CGROUP_CHARGE_TYPE_SWAPOUT,	/* for accounting swapcache */
-	MEM_CGROUP_CHARGE_TYPE_DROP,	/* a page was unused swap cache */
-	NR_CHARGE_TYPE,
-};
-
 /* for encoding cft->private value on file */
 enum res_type {
 	_MEM,
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Alex Shi

After commit 0a31bc97c80c3f mm: memcontrol: rewrite uncharge API, no one using MEM_CGROUP_CHARGE_TYPE_xxx, let's remove them.

Acked-by on v1 1/1
#2 lore raw
In reply to Alex Shi
Quoted 11 lines · Alex Shi

After commit 0a31bc97c80c3f mm: memcontrol: rewrite uncharge API, no one using MEM_CGROUP_CHARGE_TYPE_xxx, let's remove them.

Thanks!

Quoted 25 lines
---
 mm/memcontrol.c | 8 --------
 1 file changed, 8 deletions(-)
mm/memcontrol.c +0 -8
index 5d52b8a88bea..d925905920bf 100644
@@ -199,14 +199,6 @@ struct mem_cgroup_event {
 #define	MEM_CGROUP_MAX_RECLAIM_LOOPS		100
 #define	MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS	2
 
-enum charge_type {
-	MEM_CGROUP_CHARGE_TYPE_CACHE = 0,
-	MEM_CGROUP_CHARGE_TYPE_ANON,
-	MEM_CGROUP_CHARGE_TYPE_SWAPOUT,	/* for accounting swapcache */
-	MEM_CGROUP_CHARGE_TYPE_DROP,	/* a page was unused swap cache */
-	NR_CHARGE_TYPE,
-};
-
 /* for encoding cft->private value on file */
 enum res_type {
 	_MEM,
Signature · 1 line
1.8.3.1
Signature · 2 lines
Michal Hocko
SUSE Labs