On 07/20/2015 04:20 PM, Kirill A. Shutemov wrote: > We're going to allow mapping of individual 4k pages of THP compound > page. It means we cannot rely on PageTransHuge() check to decide if > map/unmap small page or THP. > > The patch adds new argument to rmap functions to indicate whether we want > to operate on whole compound page or only the small page. > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> > Tested-by: Sasha Levin <sasha.levin@xxxxxxxxxx> > Tested-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> > Acked-by: Vlastimil Babka <vbabka@xxxxxxx> Acked-by: Jerome Marchand <jmarchan@xxxxxxxxxx> > --- > include/linux/rmap.h | 12 +++++++++--- > kernel/events/uprobes.c | 4 ++-- > mm/huge_memory.c | 16 ++++++++-------- > mm/hugetlb.c | 4 ++-- > mm/ksm.c | 4 ++-- > mm/memory.c | 14 +++++++------- > mm/migrate.c | 8 ++++---- > mm/rmap.c | 48 +++++++++++++++++++++++++++++++----------------- > mm/swapfile.c | 4 ++-- > mm/userfaultfd.c | 2 +- > 10 files changed, 68 insertions(+), 48 deletions(-)
Attachment:
signature.asc
Description: OpenPGP digital signature