Re: [Patch v3 4/4] mm/mremap: use pmd_addr_end to simplify the calculate of extent

2020-07-08 Thread Kirill A. Shutemov
On Wed, Jul 08, 2020 at 09:24:53AM +0800, Wei Yang wrote: > The purpose of this code is to calculate the smaller extent in old and > new range. Let's leverage pmd_addr_end() to do the calculation. > > Hope this would make the code easier to read. > > Signed-off-by: Wei Yang > --- > mm/mremap.c

[Patch v3 4/4] mm/mremap: use pmd_addr_end to simplify the calculate of extent

2020-07-07 Thread Wei Yang
The purpose of this code is to calculate the smaller extent in old and new range. Let's leverage pmd_addr_end() to do the calculation. Hope this would make the code easier to read. Signed-off-by: Wei Yang --- mm/mremap.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) di