On 25 Nov 2024, at 16:01, Matthew Wilcox (Oracle) wrote: > Remove some code duplication by calling set_page_refcounted() at the > end of __alloc_pages() instead of after each call that can allocate > a page. That means that we free a frozen page if we've exceeded the > allowed memcg memory. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > --- > mm/page_alloc.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > Reviewed-by: Zi Yan <ziy@xxxxxxxxxx> -- Best Regards, Yan, Zi