mm: memcg-v1: account vmpressure event allocations
Subsystems (4)
PATCH 1/1 mm: memcg-v1: account vmpressure event allocations
From: Guopeng Zhang <[email protected]>
Commit 72797d218b43 ("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control") accounted cgroup v1 event registration allocations with GFP_KERNEL_ACCOUNT, but missed struct vmpressure_event.
Use GFP_KERNEL_ACCOUNT for this allocation as well.
--- mm/memcontrol-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol-v1.c +1 -1
@@ -1721,7 +1721,7 @@ int vmpressure_register_event(struct mem_cgroup *memcg, mode = ret; } - ev =kzalloc_obj (*ev); + ev =kzalloc_obj (*ev,GFP_KERNEL_ACCOUNT );if (!ev) { ret = -ENOMEM ; goto out;
Signature · 1 line
2.43.0
Quoted 20 lines · Guopeng Zhang
From: Guopeng Zhang <[email protected]>
Commit
72797d218b43("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control") accounted cgroup v1 event registration allocations withGFP_KERNEL_ACCOUNT, but missed structvmpressure_event.Use
GFP_KERNEL_ACCOUNTfor this allocation as well.Fixes 72797d218b43 ("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control")Signed-off-by Guopeng Zhang <[email protected]>--- mm/memcontrol-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/memcontrol-v1.c +0
-0
mm/memcontrol-v1.c int vmpressure_register_event(struct mem_cgroup *memcg, · line 1727
Quoted 8 lines
mm/memcontrol-v1.c +1
-1@@ -1721,7 +1721,7 @@ int vmpressure_register_event(struct mem_cgroup *memcg, mode = ret; } - ev =kzalloc_obj (*ev); + ev =kzalloc_obj (*ev,GFP_KERNEL_ACCOUNT );if (!ev) { ret = -ENOMEM ; goto out;
Quoted 11 lines · Guopeng Zhang
From: Guopeng Zhang <[email protected]>
Commit
72797d218b43("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control") accounted cgroup v1 event registration allocations withGFP_KERNEL_ACCOUNT, but missed structvmpressure_event.Use
GFP_KERNEL_ACCOUNTfor this allocation as well.Fixes 72797d218b43 ("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control")Signed-off-by Guopeng Zhang <[email protected]>
I guess :)
Quoted 11 lines · Guopeng Zhang
From: Guopeng Zhang <[email protected]>
Commit
72797d218b43("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control") accounted cgroup v1 event registration allocations withGFP_KERNEL_ACCOUNT, but missed structvmpressure_event.
Quoted 4 lines
Use
GFP_KERNEL_ACCOUNTfor this allocation as well.Fixes 72797d218b43 ("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control")Signed-off-by Guopeng Zhang <[email protected]>
Quoted 11 lines · Guopeng Zhang
From: Guopeng Zhang <[email protected]>
Commit
72797d218b43("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control") accounted cgroup v1 event registration allocations withGFP_KERNEL_ACCOUNT, but missed structvmpressure_event.Use
GFP_KERNEL_ACCOUNTfor this allocation as well.Fixes 72797d218b43 ("mm/memcg: v1: account event registrations and drop world-writable cgroup.event_control")Signed-off-by Guopeng Zhang <[email protected]>