Re: [PATCH RFC 2/2] mm: Use pte markers for swap errors

From: Peter Xu
Date: Tue Oct 25 2022 - 11:45:20 EST


On Tue, Oct 25, 2022 at 05:31:43PM +0200, David Hildenbrand wrote:
> > -#define PTE_MARKER_UFFD_WP BIT(0)
> > -#define PTE_MARKER_MASK (PTE_MARKER_UFFD_WP)
> > +#define PTE_MARKER_UFFD_WP BIT(0)
> > +#define PTE_MARKER_SWAP_ERROR BIT(1)
>
> I'd suggest to keep the term SWAPIN. An error happened during swapin, which
> is why the page is corrupted.

Sure thing.

--
Peter Xu