Re: [PATCH v3 10/11] mm/memory-failure: Use folio functions throughout collect_procs()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2024/4/13 3:35, Matthew Wilcox (Oracle) wrote:
> Saves a couple of calls to compound_head().
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
> Reviewed-by: Jane Chu <jane.chu@xxxxxxxxxx>

Acked-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Thanks.
.

> ---
>  mm/memory-failure.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/mm/memory-failure.c b/mm/memory-failure.c
> index e42c5f2179dc..a9fa5901b48c 100644
> --- a/mm/memory-failure.c
> +++ b/mm/memory-failure.c
> @@ -722,9 +722,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);
> 





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux