Re: [PATCH v1 03/17] mm/rmap: use folio_large_nr_pages() in add/remove functions
From: Kirill A. Shutemov
Date: Wed Oct 23 2024 - 07:22:51 EST
On Thu, Aug 29, 2024 at 06:56:06PM +0200, David Hildenbrand wrote:
> Let's just use the "large" variant in code where we are sure that we
> have a large folio in our hands: this way we are sure that we don't
> perform any unnecessary "large" checks.
>
> While at it, convert the VM_BUG_ON_VMA to a VM_WARN_ON_ONCE.
>
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
--
Kiryl Shutsemau / Kirill A. Shutemov