]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc: reduce potential fragmentation in make_alloc_exact()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 31 May 2022 13:20:51 +0000 (09:20 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 21 Oct 2022 04:27:23 +0000 (21:27 -0700)
commitfcd8f4b394b6e16291d13d201a6b13b5214e71bb
treed210bb01c9e8cdf4070ca9d3b61db8830c966349
parent787172d3cf73ba1bea8bc8cf4d599c254cb1310e
mm/page_alloc: reduce potential fragmentation in make_alloc_exact()

Try to avoid using the left over split page on the next request for a page
by calling __free_pages_ok() with FPI_TO_TAIL.  This increases the
potential of defragmenting memory when it's used for a short period of
time.

Link: https://lkml.kernel.org/r/20220531185626.yvlmymbxyoe5vags@revolver
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c