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

From
Kiryl Shutsemau <hidden>
Date
2026-08-20 11:03:22
Also in
bpf, linux-kselftest, linux-mm, lkml
Reply to
David Hildenbrand (Arm), 2026-08-17
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
Thread (119 messages) 119 messages, 9 authors, last reply 2026-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help