path: root/kernel
diff options
authorSong Liu <>2019-09-23 15:38:19 -0700
committerLinus Torvalds <>2019-09-24 15:54:11 -0700
commit010c164a5fa7e169deab0a4d8211611f1930c1cd (patch)
treefb07bdd2cf844ccf1e1aaf6fc40e42399fb0dc19 /kernel
parent87eaceb3faa59b9b4d940ec9554ce251325d83fe (diff)
mm: move memcmp_pages() and pages_identical()
Patch series "THP aware uprobe", v13. This patchset makes uprobe aware of THPs. Currently, when uprobe is attached to text on THP, the page is split by FOLL_SPLIT. As a result, uprobe eliminates the performance benefit of THP. This set makes uprobe THP-aware. Instead of FOLL_SPLIT, we introduces FOLL_SPLIT_PMD, which only split PMD for uprobe. After all uprobes within the THP are removed, the PTE-mapped pages are regrouped as huge PMD. This set (plus a few THP patches) is also available at This patch (of 6): Move memcmp_pages() to mm/util.c and pages_identical() to mm.h, so that we can use them in other files. Link: Signed-off-by: Song Liu <> Acked-by: Kirill A. Shutemov <> Reviewed-by: Oleg Nesterov <> Cc: Johannes Weiner <> Cc: Matthew Wilcox <> Cc: William Kucharski <> Cc: Srikar Dronamraju <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions