Re: [PATCH v1 3/4] mm/mmu_gather: Remove encoded_page infrastructure

From: Linus Torvalds
Date: Thu Aug 10 2023 - 14:32:37 EST


On Thu, 10 Aug 2023 at 10:35, Yu Zhao <yuzhao@xxxxxxxxxx> wrote:
>
> Adding the original author and reviewers... They might want (need) to
> take a look at this series.

It looks fine to me. The important part is that the rmap removal has
to be done after the TLB flush, but before the page table lock is
released.

That used to be a special thing for anonymous pages and thus needed
that special flag. But if it's done for *all* pages the need to flag
pages goes away.

I see no issues with this, although obviously I might have missed something.

Linus