Skip to contentSkip to conversation

mm/mempolicy: remove unused mpol_is_preferred_many()

PATCH Applied Sang-Heon Jeon 5 participants 6 messages Oct 23 – Nov 12

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/mempolicy: remove unused mpol_is_preferred_many()

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.

---
 include/linux/mempolicy.h | 10 ----------
 1 file changed, 10 deletions(-)
include/linux/mempolicy.h +0 -10
index 65c732d440d2..cd8f944209ca 100644
@@ -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

Signature · 1 line
2.43.0
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Sang-Heon Jeon
Quoted 12 lines · Sang-Heon Jeon

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.

---
 include/linux/mempolicy.h | 10 ----------
 1 file changed, 10 deletions(-)

LGTM.

Best Regards,
Yan, Zi

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Sang-Heon Jeon
Quoted 9 lines · Sang-Heon Jeon

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.

---

I'll likely pick this up for the next cycle. After the merge window ;)

Signature · 3 lines
Cheers,

David
Reviewed-by on v1 1/1
#4 lore raw
In reply to Sang-Heon Jeon
Quoted 2 lines · On Sat, 24 Oct 2026 01:10:01 +0900 Sang-Heon Jeon <[email protected]> wrote:

Since commit a492abe28bec ("mm: hugetlb: move mpol interpretation out of dequeue_hugetlb_folio_vma()"), mpol_is_preferred_many() has no callers.

Looks correct to me.

Quoted 6 lines

So remove it.

No functional change.

Thanks,
SJ

[...]

maintainer Applied
#5 lore raw
In reply to Sang-Heon Jeon
Quoted 8 lines · Sang-Heon Jeon

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.

[...]

Applied, thanks!

tree: mm/core.git
branch: migrate-7.5.misc

Applied patches will appear soon in mm-next, followed by linux-next.

Please report any outstanding bugs that were missed during review, so we can either drop the patch series or decide how to fix it up.

It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even though the patches have already been applied. If possible, patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. Further, this is not a guarantee that the patches will go upstream. If in doubt, please check the listed branch.

[1/1] mm/mempolicy: remove unused mpol_is_preferred_many()

      https://git.kernel.org/mm/core/c/ae06b0a9
Signature · 3 lines
Cheers,

David