On Fri, Nov 11, 2011 at 10:39 PM, Konstantin Khlebnikov <khlebnikov@xxxxxxxxxx> wrote: > This patch adds helper free_hot_cold_page_list() to free list of 0-order pages. > It frees pages directly from the list without temporary page-vector. > It also calls trace_mm_pagevec_free() to simulate pagevec_free() behaviour. > > bloat-o-meter: > > add/remove: 1/1 grow/shrink: 1/3 up/down: 267/-295 (-28) > function old new delta > free_hot_cold_page_list - 264 +264 > get_page_from_freelist 2129 2132 +3 > __pagevec_free 243 239 -4 > split_free_page 380 373 -7 > release_pages 606 510 -96 > free_page_list 188 - -188 > > v2: Remove list reinititialization. > v3: Always free pages in reverse order. > The most recently added struct page, the most likely to be hot. > > Signed-off-by: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxx> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx> -- Kind regards, Minchan Kim ��.n������g����a����&ޖ)���)��h���&������梷�����Ǟ�m������)�����b�n���y��{^�w�r���&�i��('����춊m�鞵��â����چ�����i�������$����