Messages in this thread | | | Date | Fri, 4 Jun 2021 19:41:03 +0300 | From | "Kirill A. Shutemov" <> | Subject | Re: [PATCH 7/7] mm/thp: remap_page() is only needed on anonymous THP |
| |
On Tue, Jun 01, 2021 at 02:17:19PM -0700, Hugh Dickins wrote: > THP splitting's unmap_page() only sets TTU_SPLIT_FREEZE when PageAnon, > and migration entries are only inserted when TTU_MIGRATION (unused here) > or TTU_SPLIT_FREEZE is set: so it's just a waste of time for remap_page() > to search for migration entries to remove when !PageAnon. > > Fixes: baa355fd3314 ("thp: file pages support for split_huge_page()") > Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
-- Kirill A. Shutemov
| |