diff options
| author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2024-10-10 14:15:56 +0800 | 
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-11-06 20:11:12 -0800 | 
| commit | 6359c39c9de66dede8ff5ff257c9e117483dbc7c (patch) | |
| tree | e557e4ae93a6c7fab15c7a1dc647d5f74dadd492 /mm/mempolicy.c | |
| parent | f8780515fe914ac03189213c7e485264d65e2ece (diff) | |
mm: remove unused hugepage for vma_alloc_folio()
The hugepage parameter was deprecated since commit ddc1a5cbc05d
("mempolicy: alloc_pages_mpol() for NUMA policy without vma"), for
PMD-sized THP, it still tries only preferred node if possible in
vma_alloc_folio() by checking the order of the folio allocation.
Link: https://lkml.kernel.org/r/20241010061556.1846751-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Barry Song <baohua@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
| -rw-r--r-- | mm/mempolicy.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 9e18a6fc3061..a29eff5d0585 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2290,7 +2290,6 @@ struct folio *folio_alloc_mpol_noprof(gfp_t gfp, unsigned int order,   * @order: Order of the folio.   * @vma: Pointer to VMA.   * @addr: Virtual address of the allocation.  Must be inside @vma. - * @hugepage: Unused (was: For hugepages try only preferred node if possible).   *   * Allocate a folio for a specific address in @vma, using the appropriate   * NUMA policy.  The caller must hold the mmap_lock of the mm_struct of the @@ -2301,7 +2300,7 @@ struct folio *folio_alloc_mpol_noprof(gfp_t gfp, unsigned int order,   * Return: The folio on success or NULL if allocation fails.   */  struct folio *vma_alloc_folio_noprof(gfp_t gfp, int order, struct vm_area_struct *vma, -		unsigned long addr, bool hugepage) +		unsigned long addr)  {  	struct mempolicy *pol;  	pgoff_t ilx; | 
