All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpuset: remove unused task_has_mempolicy()
@ 2019-02-18  6:28 Masahiro Yamada
  2019-02-19 14:27 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-02-18  6:28 UTC (permalink / raw)
  To: Li Zefan, Tejun Heo, cgroups; +Cc: Masahiro Yamada, linux-kernel

This is a remnant of commit 5f155f27cb7f ("mm, cpuset: always use
seqlock when changing task's nodemask").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 kernel/cgroup/cpuset.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 479743d..72afd55 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -203,19 +203,6 @@ static inline struct cpuset *parent_cs(struct cpuset *cs)
 	return css_cs(cs->css.parent);
 }
 
-#ifdef CONFIG_NUMA
-static inline bool task_has_mempolicy(struct task_struct *task)
-{
-	return task->mempolicy;
-}
-#else
-static inline bool task_has_mempolicy(struct task_struct *task)
-{
-	return false;
-}
-#endif
-
-
 /* bits in struct cpuset flags field */
 typedef enum {
 	CS_ONLINE,
-- 
2.7.4


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

* Re: [PATCH] cpuset: remove unused task_has_mempolicy()
  2019-02-18  6:28 [PATCH] cpuset: remove unused task_has_mempolicy() Masahiro Yamada
@ 2019-02-19 14:27 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2019-02-19 14:27 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Li Zefan, cgroups, linux-kernel

On Mon, Feb 18, 2019 at 03:28:11PM +0900, Masahiro Yamada wrote:
> This is a remnant of commit 5f155f27cb7f ("mm, cpuset: always use
> seqlock when changing task's nodemask").
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Applied to cgroup/for-5.0.

Thanks.

-- 
tejun

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

end of thread, other threads:[~2019-02-19 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-18  6:28 [PATCH] cpuset: remove unused task_has_mempolicy() Masahiro Yamada
2019-02-19 14:27 ` 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.