mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
mm/memory-failure: convert hugetlb_clear_page_hwpoison to folios
Change hugetlb_clear_page_hwpoison() to folio_clear_hugetlb_hwpoison() by changing the function to take in a folio. This converts one use of ClearPageHWPoison and HPageRawHwpUnreliable to their folio equivalents. Link: https://lkml.kernel.org/r/20230112204608.80136-4-sidhartha.kumar@oracle.com Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
bc1cfde194
commit
2ff6cecee6
3 changed files with 8 additions and 8 deletions
|
@ -878,9 +878,9 @@ extern int dissolve_free_huge_pages(unsigned long start_pfn,
|
|||
unsigned long end_pfn);
|
||||
|
||||
#ifdef CONFIG_MEMORY_FAILURE
|
||||
extern void hugetlb_clear_page_hwpoison(struct page *hpage);
|
||||
extern void folio_clear_hugetlb_hwpoison(struct folio *folio);
|
||||
#else
|
||||
static inline void hugetlb_clear_page_hwpoison(struct page *hpage)
|
||||
static inline void folio_clear_hugetlb_hwpoison(struct folio *folio)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue