Re: [PATCH] mm: Free unused swap cache page in write protection fault handler

From: Linus Torvalds
Date: Tue Jan 12 2021 - 21:48:18 EST


On Tue, Jan 12, 2021 at 6:43 PM Huang Ying <ying.huang@xxxxxxxxx> wrote:
>
> So in this patch, at the end of wp_page_copy(), the old unused swap
> cache page will be tried to be freed.

I'd much rather free it later when needed, rather than when you're in
a COW section.

Linus