mm/mempolicy: remove unused mpol_is_preferred_many()
Subsystems (2)
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
@@ -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
Quoted 8 lines · Sang-Heon Jeon
Since commit
a492abe28bec("mm: hugetlb: move mpol interpretation out ofdequeue_hugetlb_folio_vma()"),mpol_is_preferred_many()has no callers.So remove it.
No functional change.
Signed-off-by Sang-Heon Jeon <[email protected]>
looks good to me
Signature · 1 line
~Gregory
Quoted 12 lines · Sang-Heon Jeon
Since commit
a492abe28bec("mm: hugetlb: move mpol interpretation out ofdequeue_hugetlb_folio_vma()"),mpol_is_preferred_many()has no callers.So remove it.
No functional change.
Signed-off-by Sang-Heon Jeon <[email protected]>--- include/linux/mempolicy.h | 10 ---------- 1 file changed, 10 deletions(-)
LGTM.
Best Regards,
Yan, Zi
Quoted 9 lines · Sang-Heon Jeon
Since commit
a492abe28bec("mm: hugetlb: move mpol interpretation out ofdequeue_hugetlb_folio_vma()"),mpol_is_preferred_many()has no callers.So remove it.
No functional change.
Signed-off-by Sang-Heon Jeon <[email protected]>---
I'll likely pick this up for the next cycle. After the merge window ;)
Signature · 3 lines
Cheers, David
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 ofdequeue_hugetlb_folio_vma()"),mpol_is_preferred_many()has no callers.
Looks correct to me.
Quoted 6 lines
So remove it.
No functional change.
Signed-off-by Sang-Heon Jeon <[email protected]>
Thanks,
SJ
[...]
Quoted 8 lines · Sang-Heon Jeon
Since commit
a492abe28bec("mm: hugetlb: move mpol interpretation out ofdequeue_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