]> Gentwo Git Trees - linux/.git/commit
ptdesc: remove references to folios from __pagetable_ctor() and pagetable_dtor()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 8 Sep 2025 17:11:01 +0000 (18:11 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:27 +0000 (14:22 -0700)
commitf0c92726e89f5c6c092526787465617a68af154f
tree5a9aa9ce5458c2b0afdcd0b6f3d2f9714bc40e0e
parent522abd92279a8ea55bcc687f77697d4c0aaba6c0
ptdesc: remove references to folios from __pagetable_ctor() and pagetable_dtor()

In preparation for splitting struct ptdesc from struct page and struct
folio, remove mentions of struct folio from these functions.  Introduce
ptdesc_nr_pages() to avoid using lruvec_stat_add/sub_folio()

Link: https://lkml.kernel.org/r/20250908171104.2409217-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h