cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] mm/memcg: use NUMA_NO_NODE to indicate allocation from unspecified node
@ 2022-01-11  1:02 Wei Yang
  2022-01-11  1:03 ` [PATCH 2/4] mm/memcg: mem_cgroup_per_node is already set to 0 on allocation Wei Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Wei Yang @ 2022-01-11  1:02 UTC (permalink / raw)
  To: hannes-druUgvl0LCNAfugRpC6u6w, mhocko-DgEjT+Ai2ygdnm+yROfE0A,
	vdavydov.dev-Re5JQEeQqe8AvxtiuMwx3w,
	akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b,
	shakeelb-hpIqsD4AKlfQT0dZR+AlfA, guro-b10kYP2dOMg,
	vbabka-AlSwsSmVLrQ, willy-wEGCiKHe2LqWVfeAwA7xHQ,
	songmuchun-EC8Uxl6Npydl57MIdRCFDg,
	shy828301-Re5JQEeQqe8AvxtiuMwx3w, surenb-hpIqsD4AKlfQT0dZR+AlfA
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg,
	Wei Yang

Instead of use "-1", let's use NUMA_NO_NODE for consistency.

Signed-off-by: Wei Yang <richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 mm/memcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 2ed5f2a0879d..11715f7323c0 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5054,7 +5054,7 @@ static int alloc_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node)
 	 *       function.
 	 */
 	if (!node_state(node, N_NORMAL_MEMORY))
-		tmp = -1;
+		tmp = NUMA_NO_NODE;
 	pn = kzalloc_node(sizeof(*pn), GFP_KERNEL, tmp);
 	if (!pn)
 		return 1;
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2022-02-01  0:42 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-11  1:02 [PATCH 1/4] mm/memcg: use NUMA_NO_NODE to indicate allocation from unspecified node Wei Yang
2022-01-11  1:03 ` [PATCH 2/4] mm/memcg: mem_cgroup_per_node is already set to 0 on allocation Wei Yang
2022-01-11  8:41   ` Michal Hocko
2022-01-14 11:08   ` Mike Rapoport
     [not found]   ` <20220111010302.8864-2-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-01-11  2:25     ` Muchun Song
2022-01-11 18:06     ` Roman Gushchin
2022-01-16 19:24     ` Shakeel Butt
     [not found] ` <20220111010302.8864-1-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-01-11  1:03   ` [PATCH 3/4] mm/memcg: retrieve parent memcg from css.parent Wei Yang
     [not found]     ` <20220111010302.8864-3-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-01-11  3:12       ` Muchun Song
2022-01-11 18:09       ` Roman Gushchin
     [not found]         ` <Yd3H8Hea6dBlkzeW-cx5fftMpWqeCjSd+JxjunQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2022-01-12  0:24           ` Wei Yang
2022-01-16 19:54       ` Shakeel Butt
2022-01-11  8:43     ` Michal Hocko
2022-01-11  1:03   ` [PATCH 4/4] mm/memcg: refine mem_cgroup_threshold_ary->current_threshold calculation Wei Yang
2022-01-11  8:44     ` Michal Hocko
     [not found]     ` <20220111010302.8864-4-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-01-11 18:23       ` Roman Gushchin
     [not found]         ` <Yd3LLalWzPy17PmR-cx5fftMpWqeCjSd+JxjunQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2022-01-12  0:25           ` Wei Yang
2022-01-11  2:23   ` [PATCH 1/4] mm/memcg: use NUMA_NO_NODE to indicate allocation from unspecified node Muchun Song
2022-01-11  8:40   ` Michal Hocko
     [not found]     ` <Yd1CdJA5NelzoK1D-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-01-12  0:46       ` Wei Yang
2022-01-12  8:56         ` Michal Hocko
     [not found]           ` <Yd6Xr7K9bKGVgGtI-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-01-14  0:29             ` Wei Yang
2022-01-14  8:51               ` Michal Hocko
     [not found]                 ` <YeE5k79uP3xBPCv7-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-01-15 22:10                   ` Wei Yang
2022-01-16 19:23             ` Shakeel Butt
2022-01-11 18:05   ` Roman Gushchin
2022-01-14 11:07   ` Mike Rapoport
2022-01-31  1:47 ` Wei Yang
2022-01-31 22:36   ` Andrew Morton
     [not found]     ` <20220131143620.b619f24f5246b26bce2b717d-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2022-02-01  0:42       ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).