Re: Extending page pinning into fs/direct-io.c

From: David Howells
Date: Thu May 25 2023 - 13:08:26 EST


David Hildenbrand <david@xxxxxxxxxx> wrote:

> I think the correct way to test for a zero page is
> is_zero_pfn(page_to_pfn(page).
>
> Using my_zero_pfn(vmf->address) in do_anonymous_page() these can easily end up
> in any process.

Should everywhere that is using ZERO_PAGE(0) actually be using my_zero_pfn()?

ZERO_PAGE() could do with a kdoc comment saying how to use it.

David