]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - mm/memcontrol.c
mm: memcg: make alloc_mem_cgroup_per_node_info() return bool
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 7 May 2024 13:23:24 +0000 (13:23 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 11 May 2024 22:41:36 +0000 (15:41 -0700)
commita8248bb72fed5888bc3a0c7a4c97eb358906d7ea
tree17825903adfa7a6a18be9dde1bfc8f6ed4413def
parent3b15f9d1c22dfe82efd03cb7acc2eeb557c735b5
mm: memcg: make alloc_mem_cgroup_per_node_info() return bool

alloc_mem_cgroup_per_node_info() returns int that doesn't map to any errno
error code.  The only existing caller doesn't really need an error code so
change the function to return bool (true on success) because this is
slightly less confusing and more consistent with the other code.

Link: https://lkml.kernel.org/r/20240507132324.1158510-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c