mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	mm/hugetlb: replace page_ref_freeze() with folio_ref_freeze() in hugetlb_folio_init_vmemmap()
No functional difference, folio_ref_freeze() is currently a wrapper for page_ref_freeze(). Link: https://lkml.kernel.org/r/20230926174433.81241-1-sidhartha.kumar@oracle.com Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Usama Arif <usama.arif@bytedance.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									a08c7193e4
								
							
						
					
					
						commit
						a48bf7b475
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -3191,7 +3191,7 @@ static void __init hugetlb_folio_init_vmemmap(struct folio *folio,
 | 
				
			||||||
	/* Prepare folio head */
 | 
						/* Prepare folio head */
 | 
				
			||||||
	__folio_clear_reserved(folio);
 | 
						__folio_clear_reserved(folio);
 | 
				
			||||||
	__folio_set_head(folio);
 | 
						__folio_set_head(folio);
 | 
				
			||||||
	ret = page_ref_freeze(&folio->page, 1);
 | 
						ret = folio_ref_freeze(folio, 1);
 | 
				
			||||||
	VM_BUG_ON(!ret);
 | 
						VM_BUG_ON(!ret);
 | 
				
			||||||
	/* Initialize the necessary tail struct pages */
 | 
						/* Initialize the necessary tail struct pages */
 | 
				
			||||||
	hugetlb_folio_init_tail_vmemmap(folio, 1, nr_pages);
 | 
						hugetlb_folio_init_tail_vmemmap(folio, 1, nr_pages);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue