linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean
@ 2021-12-19  2:41 Qi Zheng
  2022-01-07 22:06 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Qi Zheng @ 2021-12-19  2:41 UTC (permalink / raw)
  To: lizefan.x, tj, hannes; +Cc: cgroups, linux-kernel, Qi Zheng

Convert 'allowed' in __cpuset_node_allowed() to be boolean since the
return types of node_isset() and __cpuset_node_allowed() are both
boolean.

Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
---
 kernel/cgroup/cpuset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 0dd7d853ed17..dc653ab26e50 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -3528,7 +3528,7 @@ static struct cpuset *nearest_hardwall_ancestor(struct cpuset *cs)
 bool __cpuset_node_allowed(int node, gfp_t gfp_mask)
 {
 	struct cpuset *cs;		/* current cpuset ancestors */
-	int allowed;			/* is allocation in zone z allowed? */
+	bool allowed;			/* is allocation in zone z allowed? */
 	unsigned long flags;
 
 	if (in_interrupt())
-- 
2.11.0


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

* Re: [PATCH] cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean
  2021-12-19  2:41 [PATCH] cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean Qi Zheng
@ 2022-01-07 22:06 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2022-01-07 22:06 UTC (permalink / raw)
  To: Qi Zheng; +Cc: lizefan.x, hannes, cgroups, linux-kernel

On Sun, Dec 19, 2021 at 10:41:54AM +0800, Qi Zheng wrote:
> Convert 'allowed' in __cpuset_node_allowed() to be boolean since the
> return types of node_isset() and __cpuset_node_allowed() are both
> boolean.
> 
> Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>

Applied to cgroup/for-5.17.

Thanks.

-- 
tejun

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

end of thread, other threads:[~2022-01-07 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-19  2:41 [PATCH] cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean Qi Zheng
2022-01-07 22:06 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).