* [PATCH] mm/mempolicy: remove unused mpol_is_preferred_many()
@ 2026-10-23 16:10 Sang-Heon Jeon
0 siblings, 0 replies; only message in thread
From: Sang-Heon Jeon @ 2026-10-23 16:10 UTC (permalink / raw)
To: Andrew Morton, David Hildenbrand, Gregory Price
Cc: Joshua Hahn, linux-kernel, linux-mm, Rakie Kim, Ying Huang, Zi Yan
Since commit a492abe28bec ("mm: hugetlb: move mpol interpretation out of
dequeue_hugetlb_folio_vma()"), mpol_is_preferred_many() has no callers.
So remove it.
No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
include/linux/mempolicy.h | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h
index 65c732d440d2..cd8f944209ca 100644
--- a/include/linux/mempolicy.h
+++ b/include/linux/mempolicy.h
@@ -173,11 +173,6 @@ int mpol_misplaced(struct folio *folio, struct vm_fault *vmf,
unsigned long addr);
extern void mpol_put_task_policy(struct task_struct *);
-static inline bool mpol_is_preferred_many(struct mempolicy *pol)
-{
- return (pol->mode == MPOL_PREFERRED_MANY);
-}
-
extern bool apply_policy_zone(struct mempolicy *policy, enum zone_type zone);
extern int mempolicy_set_node_perf(unsigned int node,
@@ -298,10 +293,5 @@ static inline void mpol_put_task_policy(struct task_struct *task)
{
}
-static inline bool mpol_is_preferred_many(struct mempolicy *pol)
-{
- return false;
-}
-
#endif /* CONFIG_NUMA */
#endif
base-commit: fcec4f4bcc1101dbd7e3aff267856b3bbfe128c6
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-23 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 16:10 [PATCH] mm/mempolicy: remove unused mpol_is_preferred_many() Sang-Heon Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®