mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
mm/memory-failure: fix comment of get_hwpoison_page()
When return value is 0, it could also means the page is free hugetlb page or free buddy page. Fix the corresponding comment. Link: https://lkml.kernel.org/r/20240612071835.157004-12-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Cc: Borislav Petkov (AMD) <bp@alien8.de> Cc: David Hildenbrand <david@redhat.com> Cc: kernel test robot <lkp@intel.com> Cc: Naoya Horiguchi <nao.horiguchi@gmail.com> Cc: Tony Luck <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
3a78f77fd1
commit
b71340ef56
@ -1525,7 +1525,7 @@ static int __get_unpoison_page(struct page *page)
|
||||
* the given page has PG_hwpoison. So it's never reused for other page
|
||||
* allocations, and __get_unpoison_page() never races with them.
|
||||
*
|
||||
* Return: 0 on failure,
|
||||
* Return: 0 on failure or free buddy (hugetlb) page,
|
||||
* 1 on success for in-use pages in a well-defined state,
|
||||
* -EIO for pages on which we can not handle memory errors,
|
||||
* -EBUSY when get_hwpoison_page() has raced with page lifecycle
|
||||
|
Loading…
Reference in New Issue
Block a user