]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpuset: clean up cpuset_node_allowed
authorHaifeng Xu <haifeng.xu@shopee.com>
Tue, 28 Feb 2023 08:35:37 +0000 (08:35 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:13 +0000 (16:02 -0700)
commitcf017c84ae055e89c4366b3315f4bf0f31f4e2f1
tree2dcce798855289fdd985af88a40468d339a0c511
parent58dc3dd13ffcf21fe8c40cea14d7931b690cfb43
cpuset: clean up cpuset_node_allowed

Commit 002f290627c2 ("cpuset: use static key better and convert to new
API") used __cpuset_node_allowed() instead of cpuset_node_allowed() to
check whether we can allocate on a memory node.  Now this function isn't
used by anyone, so we can do the follow things to clean it up.

1. remove unused codes
2. rename __cpuset_node_allowed() to cpuset_node_allowed()
3. update comments in mm/page_alloc.c

Link: https://lkml.kernel.org/r/20230228083537.102665-1-haifeng.xu@shopee.com
Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
Suggested-by: Waiman Long <longman@redhat.com>
Acked-by: Waiman Long <longman@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Zefan Li <lizefan.x@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cpuset.h
kernel/cgroup/cpuset.c
mm/page_alloc.c