All of lore.kernel.org
 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
  0 siblings, 0 replies; 55+ messages in thread
From: Wei Yang @ 2022-01-11  1:02 UTC (permalink / raw)
  To: hannes, mhocko, vdavydov.dev, akpm, shakeelb, guro, vbabka,
	willy, songmuchun, shy828301, surenb
  Cc: linux-kernel, cgroups, linux-mm, Wei Yang

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

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 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] 55+ messages in thread

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

Thread overview: 55+ 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: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
2022-01-11  2:25   ` Muchun Song
2022-01-11  2:25     ` Muchun Song
2022-01-11  8:41   ` Michal Hocko
2022-01-11 18:06   ` Roman Gushchin
2022-01-11 18:06     ` Roman Gushchin
2022-01-14 11:08   ` Mike Rapoport
2022-01-16 19:24   ` Shakeel Butt
2022-01-16 19:24     ` Shakeel Butt
2022-01-11  1:03 ` [PATCH 3/4] mm/memcg: retrieve parent memcg from css.parent Wei Yang
2022-01-11  1:03   ` Wei Yang
2022-01-11  3:12   ` Muchun Song
2022-01-11  3:12     ` Muchun Song
2022-01-11  8:43   ` Michal Hocko
2022-01-11 18:09   ` Roman Gushchin
2022-01-11 18:09     ` Roman Gushchin
2022-01-12  0:24     ` Wei Yang
2022-01-12  0:24       ` Wei Yang
2022-01-16 19:54   ` Shakeel Butt
2022-01-16 19:54     ` Shakeel Butt
2022-01-11  1:03 ` [PATCH 4/4] mm/memcg: refine mem_cgroup_threshold_ary->current_threshold calculation Wei Yang
2022-01-11  1:03   ` Wei Yang
2022-01-11  8:44   ` Michal Hocko
2022-01-11 18:23   ` Roman Gushchin
2022-01-11 18:23     ` Roman Gushchin
2022-01-12  0:25     ` Wei Yang
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  2:23   ` Muchun Song
2022-01-11  8:40 ` Michal Hocko
2022-01-11  8:40   ` Michal Hocko
2022-01-12  0:46   ` Wei Yang
2022-01-12  0:46     ` Wei Yang
2022-01-12  8:56     ` Michal Hocko
2022-01-12  8:56       ` Michal Hocko
2022-01-14  0:29       ` Wei Yang
2022-01-14  0:29         ` Wei Yang
2022-01-14  8:51         ` Michal Hocko
2022-01-14  8:51           ` Michal Hocko
2022-01-15 22:10           ` Wei Yang
2022-01-15 22:10             ` Wei Yang
2022-01-16 19:23       ` Shakeel Butt
2022-01-16 19:23         ` Shakeel Butt
2022-01-11 18:05 ` Roman Gushchin
2022-01-11 18:05   ` Roman Gushchin
2022-01-14 11:07 ` Mike Rapoport
2022-01-14 11:07   ` Mike Rapoport
2022-01-31  1:47 ` Wei Yang
2022-01-31  1:47   ` Wei Yang
2022-01-31 22:36   ` Andrew Morton
2022-01-31 22:36     ` Andrew Morton
2022-02-01  0:42     ` Wei Yang
2022-02-01  0:42       ` Wei Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.