# Re: \[PATCH v2 2/2\] mm: speed up mremap by 500x on large regions

- From: Kirill A. Shutemov \<hidden\>
- Date: 2018-10-12 11:36:51 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2018/10/6489713
- Thread: https://ratatoskr.run/linux-alpha/2018/10/6489702/t.md

```text
On Fri, Oct 12, 2018 at 02:30:56PM +0300, Kirill A. Shutemov wrote:
> On Thu, Oct 11, 2018 at 06:37:56PM -0700, Joel Fernandes (Google) wrote:
> > @@ -239,7 +287,21 @@ unsigned long move_page_tables(struct vm_area_struct *vma,
> >  			split_huge_pmd(vma, old_pmd, old_addr);
> >  			if (pmd_trans_unstable(old_pmd))
> >  				continue;
> > +		} else if (extent == PMD_SIZE) {
> 
> Hm. What guarantees that new_addr is PMD_SIZE-aligned?
> It's not obvious to me.

Ignore this :)

-- 
 Kirill A. Shutemov
```
