Re: [RFC PATCH 02/57] mm: add pte_none_or_zero()

Kiryl Shutsemau <[email protected]>
Newsgroups org.kernel.vger.linux-trace-kernel,org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm
Message-ID <aobe4JwweJ0DZV0X@thinkstation>
On Mon, Aug 17, 2026 at 07:57:29PM +0200, David Hildenbrand (Arm) wrote:
> And let the callers still spell both cases out.
> 
> if (pte_none(pte) || pte_is_zero_page(pte))
> 	/* Do something amazing */

Works for me.  I will drop pte_none_or_zero() and add pte_is_zero_page(),
which lines up with is_zero_page() in mm.h.

-- 
  Kiryl Shutsemau / Kirill A. Shutemov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.