mm/hugetlb: Drop node_alloc_noretry from alloc_fresh_hugetlb_folio
Subsystems (2)
Oscar Salvador
maintainerPATCH 1/1 mm/hugetlb: Drop node_alloc_noretry from alloc_fresh_hugetlb_folio
Since commit d67e32f26713 ("hugetlb: restructure pool allocations"), the parameter node_alloc_noretry from alloc_fresh_hugetlb_folio() is not used, so drop it.
--- mm/hugetlb.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
mm/hugetlb.c +5 -7
@@ -2289,13 +2289,11 @@ static struct folio *only_alloc_fresh_hugetlb_folio(struct hstate *h,* pages is zero. */ static struct folio *alloc_fresh_hugetlb_folio (struct hstate *h, -gfp_t gfp_mask,int nid,nodemask_t *nmask, -nodemask_t *node_alloc_noretry) +gfp_t gfp_mask,int nid,nodemask_t *nmask) {struct folio *folio; - folio =__alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask, - node_alloc_noretry); + folio =__alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL );if (!folio)return NULL ;
@@ -2513,7 +2511,7 @@ static struct folio *alloc_surplus_hugetlb_folio(struct hstate *h, goto out_unlock;spin_unlock_irq (&hugetlb_lock); - folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL ); + folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask);if (!folio)return NULL ;
@@ -2549,7 +2547,7 @@ static struct folio *alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_masif (hstate_is_gigantic (h))return NULL ; - folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL ); + folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask);if (!folio)return NULL ;
@@ -3474,7 +3472,7 @@ static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid)gfp_t gfp_mask =htlb_alloc_mask (h) | __GFP_THISNODE; folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, - &node_states[N_MEMORY ],NULL ); + &node_states[N_MEMORY ]);if (!folio)break ;free_huge_folio (folio);/* free it into the hugepage allocator */
Signature · 1 line
2.45.0
Quoted 48 lines · Oscar Salvador
Since commit
d67e32f26713("hugetlb: restructure pool allocations"), the parameternode_alloc_noretryfromalloc_fresh_hugetlb_folio()is not used, so drop it.Signed-off-by Oscar Salvador <[email protected]>--- mm/hugetlb.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)mm/hugetlb.c +4
-6@@ -2289,13 +2289,11 @@ static struct folio *only_alloc_fresh_hugetlb_folio(struct hstate *h,* pages is zero. */ static struct folio *alloc_fresh_hugetlb_folio (struct hstate *h, -gfp_t gfp_mask,int nid,nodemask_t *nmask, -nodemask_t *node_alloc_noretry) +gfp_t gfp_mask,int nid,nodemask_t *nmask) {struct folio *folio; - folio =__alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask, - node_alloc_noretry); + folio =__alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL );if (!folio)return NULL ;@@ -2513,7 +2511,7 @@ static struct folio *alloc_surplus_hugetlb_folio(struct hstate *h, goto out_unlock;spin_unlock_irq (&hugetlb_lock); - folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL ); + folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask);if (!folio)return NULL ;@@ -2549,7 +2547,7 @@ static struct folio *alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_masif (hstate_is_gigantic (h))return NULL ; - folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL ); + folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask);if (!folio)return NULL ;
mm/hugetlb.c static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid) · line 3478
Quoted 8 lines
mm/hugetlb.c +1
-1@@ -3474,7 +3472,7 @@ static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid)gfp_t gfp_mask =htlb_alloc_mask (h) | __GFP_THISNODE; folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, - &node_states[N_MEMORY ],NULL ); + &node_states[N_MEMORY ]);if (!folio)break ;free_huge_folio (folio);/* free it into the hugepage allocator */
Quoted 48 lines · Oscar Salvador
Since commit
d67e32f26713("hugetlb: restructure pool allocations"), the parameternode_alloc_noretryfromalloc_fresh_hugetlb_folio()is not used, so drop it.Signed-off-by Oscar Salvador <[email protected]>--- mm/hugetlb.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)mm/hugetlb.c +4
-6@@ -2289,13 +2289,11 @@ static struct folio *only_alloc_fresh_hugetlb_folio(struct hstate *h,* pages is zero. */ static struct folio *alloc_fresh_hugetlb_folio (struct hstate *h, -gfp_t gfp_mask,int nid,nodemask_t *nmask, -nodemask_t *node_alloc_noretry) +gfp_t gfp_mask,int nid,nodemask_t *nmask) {struct folio *folio; - folio =__alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask, - node_alloc_noretry); + folio =__alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL );if (!folio)return NULL ;@@ -2513,7 +2511,7 @@ static struct folio *alloc_surplus_hugetlb_folio(struct hstate *h, goto out_unlock;spin_unlock_irq (&hugetlb_lock); - folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL ); + folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask);if (!folio)return NULL ;@@ -2549,7 +2547,7 @@ static struct folio *alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_masif (hstate_is_gigantic (h))return NULL ; - folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask,NULL ); + folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, nmask);if (!folio)return NULL ;
mm/hugetlb.c static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid) · line 3478
Quoted 8 lines
mm/hugetlb.c +1
-1@@ -3474,7 +3472,7 @@ static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid)gfp_t gfp_mask =htlb_alloc_mask (h) | __GFP_THISNODE; folio =alloc_fresh_hugetlb_folio (h, gfp_mask, nid, - &node_states[N_MEMORY ],NULL ); + &node_states[N_MEMORY ]);if (!folio)break ;free_huge_folio (folio);/* free it into the hugepage allocator */
Quoted 5 lines · Oscar Salvador
Since commit
d67e32f26713("hugetlb: restructure pool allocations"), the parameternode_alloc_noretryfromalloc_fresh_hugetlb_folio()is not used, so drop it.Signed-off-by Oscar Salvador <[email protected]>
Quoted 9 lines · Oscar Salvador
Since commit
d67e32f26713("hugetlb: restructure pool allocations"), the parameternode_alloc_noretryfromalloc_fresh_hugetlb_folio()is not used, so drop it.Signed-off-by Oscar Salvador <[email protected]>
Thanks.