mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
mm/memory-failure: use folio functions throughout collect_procs()
Saves a couple of calls to compound_head(). Link: https://lkml.kernel.org/r/20240412193510.2356957-11-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jane Chu <jane.chu@oracle.com> Acked-by: Miaohe Lin <linmiaohe@huawei.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Miaohe Lin <linmiaohe@huawei.com> Cc: Oscar Salvador <osalvador@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
ee299e9849
commit
0edb5b282a
@ -728,9 +728,9 @@ static void collect_procs(struct folio *folio, struct page *page,
|
||||
{
|
||||
if (!folio->mapping)
|
||||
return;
|
||||
if (unlikely(PageKsm(page)))
|
||||
if (unlikely(folio_test_ksm(folio)))
|
||||
collect_procs_ksm(page, tokill, force_early);
|
||||
else if (PageAnon(page))
|
||||
else if (folio_test_anon(folio))
|
||||
collect_procs_anon(folio, page, tokill, force_early);
|
||||
else
|
||||
collect_procs_file(folio, page, tokill, force_early);
|
||||
|
Loading…
Reference in New Issue
Block a user