On 2024/8/19 17:59, David Hildenbrand wrote:
On 18.08.24 22:33, Matthew Wilcox wrote:
On Sat, Aug 17, 2024 at 05:51:17PM +0800, Kefeng Wang wrote:
Convert to use folios then remove find_subpage(), thp_nr_pages()
and PageTransHuge().
This patch series is premature. None of these APIs are particularly
advantageous to remove (they're inline functions, so cost nothing unless
used).
I do enjoy seeing the removal of thp_nr_pages(), though :)
The thp_nr_pages() and PageTransHuge() removing are found when improve
memory hotplug[1], also find_subpage() has issue[2], this is where
patches come from, since there are only few callers, I think we can
cleanup it earlier?
[1]
https://lore.kernel.org/linux-mm/20240817084941.2375713-2-wangkefeng.wang@xxxxxxxxxx/
[2]
https://lore.kernel.org/linux-mm/646f8a48-820f-40ae-bf96-7d554bf4493a@xxxxxxxxxx/T/#u