Re: [PATCH v4 11/20] mm: clean up vma_address_end()
"David Hildenbrand (Arm)" <[email protected]>
| Newsgroups | gmane.comp.freedesktop.amd-gfx,gmane.linux.kernel.mm,gmane.linux.kernel,gmane.linux.file-systems,gmane.comp.emulators.kvm.devel,gmane.comp.video.dri.devel,gmane.linux.kernel.perf.user |
|---|---|
| Message-ID | <[email protected]> |
On 8/6/26 22:21, Lorenzo Stoakes (ARM) wrote: > vma_address_end() is a confusing function with a lot of moving parts so > clean it up prior to extending it for anon page indexed mappings. > > Const-ify some variables and establish pgoff_vma_start and pgoff_end > variables to clearly identify the page offset for the start of the VMA and > the end of the page offset range specified by the page walk. > > This simplifies the function significantly and lays the groundwork for a > future change to update this function to account for anonymously page > indexed folios. > > No functional change intended. > > Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]> > --- Acked-by: David Hildenbrand (Arm) <[email protected]> -- Cheers, David