]> 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>
Fri, 21 Apr 2023 23:07:57 +0000 (16:07 -0700)
commited61e80a1ea6b42e760cb840b467aae7a1843987
tree0b1e4c44cca8b7f62d0fbf5e3bb1e7073eee4160
parentcf84c3896b93b684d98313f58a45b49f9bbe9c9d
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