Re: [PATCH] KVM: use folio_nr_pages() instead of shift operation

Sean Christopherson
2025-10-20T15:51:53Z

On Wed, Oct 15, 2025, Sean Christopherson wrote:
> On Sat, 04 Oct 2025 00:02:10 -0300, Pedro Demarchi Gomes wrote:
> > folio_nr_pages() is a faster helper function to get the number of pages when
> > NR_PAGES_IN_LARGE_FOLIO is enabled.
>
> Applied to kvm-x86 gmem, thanks!
>
> [1/1] KVM: use folio_nr_pages() instead of shift operation
> https://github.com/kvm-x86/linux/commit/fa492ac7fb04

FYI, I rebased this onto 6.18-rc2 to avoid a silly merge. New hash:

[1/1] KVM: guest_memfd: use folio_nr_pages() instead of shift operation