]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swap: convert release_pages to use a folio internally
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 17 Jun 2022 17:50:11 +0000 (18:50 +0100)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:47 +0000 (18:08 -0700)
commit8e2ee71cd65d89e6a253bd06ed142a49fde8d60a
tree1fae60344092d14bf07d652dc51fc2675ea8afa9
parent04f221887e4586a0f6c3d187407175d8b8cdd528
mm/swap: convert release_pages to use a folio internally

This function was already calling compound_head(), but now it can
cache the result of calling compound_head() and avoid calling it again.
Saves 299 bytes of text by avoiding various calls to compound_page()
and avoiding checks of PageTail.

Link: https://lkml.kernel.org/r/20220617175020.717127-14-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swap.c