Re: [Patch v4 0/4] mm/mremap: cleanup move_page_tables() a little

2020-07-10 Thread Kirill A. Shutemov
On Fri, Jul 10, 2020 at 09:14:10AM +0800, Wei Yang wrote: > On Thu, Jul 09, 2020 at 10:38:58PM +0300, Dmitry Osipenko wrote: > >08.07.2020 12:50, Wei Yang пишет: > >> move_page_tables() tries to move page table by PMD or PTE. > >> > >> The root reason is if it tries to move PMD, both old and new r

Re: [Patch v4 0/4] mm/mremap: cleanup move_page_tables() a little

2020-07-09 Thread Wei Yang
On Thu, Jul 09, 2020 at 10:38:58PM +0300, Dmitry Osipenko wrote: >08.07.2020 12:50, Wei Yang пишет: >> move_page_tables() tries to move page table by PMD or PTE. >> >> The root reason is if it tries to move PMD, both old and new range should be >> PMD aligned. But current code calculate old range

Re: [Patch v4 0/4] mm/mremap: cleanup move_page_tables() a little

2020-07-09 Thread Dmitry Osipenko
08.07.2020 12:50, Wei Yang пишет: > move_page_tables() tries to move page table by PMD or PTE. > > The root reason is if it tries to move PMD, both old and new range should be > PMD aligned. But current code calculate old range and new range separately. > This leads to some redundant check and cal