Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting
From: Matthew Wilcox
Date: Sat Dec 26 2020 - 16:43:25 EST
On Sat, Dec 26, 2020 at 11:43:35PM +0300, Kirill A. Shutemov wrote:
> +static struct page *next_stable_page(struct page *page, struct vm_fault *vmf,
> + struct xa_state *xas, pgoff_t end_pgoff)
A "stable page" means one that doesn't currently have an outstanding
write (see wait_for_stable_page()). It's really "Next trivially
insertable page". I might call it "next_uptodate_page()" and gloss
over the other reasons this might fail to return a page.