All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpuset: Remove unused cpuset_node_allowed
@ 2023-02-27  8:07 ` Haifeng Xu
  0 siblings, 0 replies; 20+ messages in thread
From: Haifeng Xu @ 2023-02-27  8:07 UTC (permalink / raw)
  To: longman; +Cc: lizefan.x, cgroups, linux-kernel, Haifeng Xu

Commit 002f290627c2 ("cpuset: use static key better and convert to new API")
has 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 remove it safely.

Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
---
 include/linux/cpuset.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h
index d58e0476ee8e..7fad5afe3bba 100644
--- a/include/linux/cpuset.h
+++ b/include/linux/cpuset.h
@@ -82,13 +82,6 @@ int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
 
 extern bool __cpuset_node_allowed(int node, gfp_t gfp_mask);
 
-static inline bool cpuset_node_allowed(int node, gfp_t gfp_mask)
-{
-	if (cpusets_enabled())
-		return __cpuset_node_allowed(node, gfp_mask);
-	return true;
-}
-
 static inline bool __cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask)
 {
 	return __cpuset_node_allowed(zone_to_nid(z), gfp_mask);
@@ -223,11 +216,6 @@ static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask)
 	return 1;
 }
 
-static inline bool cpuset_node_allowed(int node, gfp_t gfp_mask)
-{
-	return true;
-}
-
 static inline bool __cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask)
 {
 	return true;
-- 
2.25.1


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

end of thread, other threads:[~2023-03-24  2:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27  8:07 [PATCH] cpuset: Remove unused cpuset_node_allowed Haifeng Xu
2023-02-27  8:07 ` Haifeng Xu
2023-02-27 14:56 ` Waiman Long
2023-02-27 14:56   ` Waiman Long
2023-02-28  2:40   ` Haifeng Xu
2023-02-28  2:40     ` Haifeng Xu
2023-02-28  2:52     ` Waiman Long
2023-02-28  2:52       ` Waiman Long
2023-02-28  3:13       ` Haifeng Xu
2023-02-28  3:13         ` Haifeng Xu
2023-02-28  8:35   ` [PATCH] cpuset: Clean up cpuset_node_allowed Haifeng Xu
2023-02-28  8:35     ` Haifeng Xu
2023-03-17 21:37     ` Tejun Heo
2023-03-17 21:37       ` Tejun Heo
2023-03-18  1:35     ` Waiman Long
2023-03-18  1:35       ` Waiman Long
2023-03-18 21:30       ` Waiman Long
2023-03-18 21:30         ` Waiman Long
2023-03-24  2:03         ` Tejun Heo
2023-03-24  2:03           ` Tejun Heo

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.