Re: [PATCH v4 11/20] mm: clean up vma_address_end()
"David Hildenbrand (Arm)" <[email protected]>
| Newsgroups | org.kernel.vger.linux-fsdevel,org.freedesktop.lists.amd-gfx,org.freedesktop.lists.dri-devel,org.freedesktop.lists.intel-xe,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-s390,org.kernel.vger.linux-trace-kernel,org.kvack.linux-mm |
|---|---|
| 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