Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: thp: avoid false positive VM_BUG_ON_PAGE in page_move_anon_rmap()
If page_move_anon_rmap() is refiling a pmd-splitted THP mapped in a tail page from a pte, the "address" must be THP aligned in order for the page->index bugcheck to pass in the CONFIG_DEBUG_VM=y builds. Link: http://lkml.kernel.org/r/1464253620-106404-1-git-send-email-kirill.shutemov@linux.intel.com Fixes: 6d0a07e ("mm: thp: calculate the mapcount correctly for THP pages during WP faults") Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Mika Westerberg <[email protected]> Tested-by: Mika Westerberg <[email protected]> Reviewed-by: Andrea Arcangeli <[email protected]> Cc: <[email protected]> [4.5] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information