Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
0edb5b28 ee299e98

+2 -2
+2 -2
mm/memory-failure.c
··· 728 728 { 729 729 if (!folio->mapping) 730 730 return; 731 - if (unlikely(PageKsm(page))) 731 + if (unlikely(folio_test_ksm(folio))) 732 732 collect_procs_ksm(page, tokill, force_early); 733 - else if (PageAnon(page)) 733 + else if (folio_test_anon(folio)) 734 734 collect_procs_anon(folio, page, tokill, force_early); 735 735 else 736 736 collect_procs_file(folio, page, tokill, force_early);