]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/khugepaged: convert hpage_collapse_scan_pmd() to use folios
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Sat, 13 Sep 2025 19:03:36 +0000 (15:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:29:57 +0000 (16:29 +0200)
commit429ed0a9ee361b9f90718bc822164b5d578d7482
tree6d3996b3e79f8ab728e1651422a722bf0742e30b
parent2bae1bf3d9fb0d8dbee8807ea799aaa807eee188
mm/khugepaged: convert hpage_collapse_scan_pmd() to use folios

[ Upstream commit 5c07ebb372d66423e508ecfb8e00324f8797f072 ]

Replaces 5 calls to compound_head(), and removes 1385 bytes of kernel
text.

Link: https://lkml.kernel.org/r/20231020183331.10770-3-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Rik van Riel <riel@surriel.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 394bfac1c7f7 ("mm/khugepaged: fix the address passed to notifier on testing young")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/khugepaged.c