On Tue, Apr 05, 2016 at 01:52:48PM -0700, Hugh Dickins wrote: > Whatever huge pagecache implementation we go with, file rmap locking > must be added to anon rmap locking, when mremap's move_page_tables() > finds a pmd_trans_huge pmd entry: a simple change, let's do it now. > > Factor out take_rmap_locks() and drop_rmap_locks() to handle the > locking for make move_ptes() and move_page_tables(), and delete > the VM_BUG_ON_VMA which rejected vm_file and required anon_vma. > > Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx> Yeah, it's cleaner than my variant. Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>