On 2022/6/1 20:23, Matthew Wilcox wrote: > On Wed, Jun 01, 2022 at 02:58:23PM +0800, Miaohe Lin wrote: >> On 2022/5/31 23:06, Matthew Wilcox (Oracle) wrote: >>> In preparation for making this function available outside page_alloc, >>> rename it to free_frozen_pages(), which fits better with the other >>> memory allocation/free functions. >>> >>> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> >> >> Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> >> >> Thanks! >> >> BTW: I thought it means we can free the temporarily frozen page (via page_ref_freeze) now >> when I saw the name "free_frozen_pages". ;) > > Well, you can. Before you'd have to do it by calling free_unref_page(), > but now you can do it by calling free_frozen_pages(). Sorry, it's my mistake. We can do this indeed, e.g. shrink_page_list is doing this via __remove_mapping + free_unref_page_list. Thanks! :) > > . >