Song Liu 010c164a5f 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

   https://github.com/liu-song-6/linux/tree/uprobe-thp

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: http://lkml.kernel.org/r/20190815164525.1848545-2-songliubraving@fb.com
Signed-off-by: Song Liu <songliubraving@fb.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox <matthew.wilcox@oracle.com>
Cc: William Kucharski <william.kucharski@oracle.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-09-24 15:54:11 -07:00
..
2019-08-09 09:15:05 +02:00
2019-09-05 12:17:50 +02:00
2019-09-17 10:27:46 -07:00
2019-07-17 09:55:43 -07:00
2019-09-19 14:14:28 -07:00
2019-09-16 09:56:27 -07:00
2019-05-31 11:13:10 +02:00
2019-09-22 09:30:30 -07:00
2019-09-21 10:26:24 -07:00
2019-09-19 13:27:23 -07:00
2019-07-08 09:54:55 -07:00
2019-09-21 10:26:24 -07:00
2019-09-19 16:24:24 -07:00
2019-09-18 10:33:46 -07:00
2019-09-17 19:15:14 -07:00
2019-08-20 22:09:52 +02:00
2019-05-14 19:52:50 -07:00
2019-07-01 08:18:54 -06:00
2019-07-25 15:47:37 +02:00
2019-08-28 21:17:12 -06:00
2019-09-19 13:27:23 -07:00
2019-04-09 17:05:46 -07:00
2019-06-12 20:27:13 +02:00
2019-09-17 19:15:14 -07:00
2019-09-18 10:33:46 -07:00
2019-06-24 10:23:16 +02:00
2019-09-19 13:27:23 -07:00
2019-07-17 09:55:43 -07:00
2019-09-05 19:52:33 -06:00
2019-09-22 10:34:46 -07:00
2019-08-05 21:52:53 +02:00
\n
2019-07-10 20:09:17 -07:00
2019-07-12 15:13:55 -07:00
2019-04-22 09:48:12 -06:00
2019-09-05 11:40:54 +02:00
2019-06-25 12:59:43 +10:00
2019-09-24 15:54:08 -07:00
2019-07-05 21:34:50 +02:00
2019-06-26 13:19:46 -07:00
2019-06-10 13:00:24 +02:00
2019-04-08 22:56:14 +02:00
2019-03-28 10:58:28 +01:00
2019-09-07 04:28:05 -03:00
2019-07-08 19:36:47 -07:00
2019-09-02 11:43:54 +01:00
2019-09-05 12:32:05 +02:00
2019-08-14 15:30:35 +02:00
2019-08-08 09:09:25 +02:00
2019-07-08 19:25:19 -07:00
2019-06-13 09:02:33 -04:00
2019-07-26 17:01:29 -06:00
2019-09-17 17:43:33 -07:00
2019-08-12 10:47:55 +02:00
2019-07-16 19:23:25 -07:00
2019-08-01 21:49:46 +02:00
2019-04-26 11:09:55 -07:00
2019-09-18 10:33:46 -07:00
2019-08-21 00:38:54 +02:00
2019-05-14 19:52:51 -07:00
2019-06-12 11:42:13 +02:00
2019-06-15 12:25:49 +02:00
2019-05-14 19:52:48 -07:00
2019-08-23 16:39:26 +01:00
2019-07-31 19:03:35 +02:00
2019-04-02 17:57:35 +02:00
2019-05-08 22:14:36 +02:00
2019-09-21 10:07:42 -07:00
2019-05-31 12:37:46 -07:00
2019-05-16 15:51:55 -07:00
2019-07-12 11:05:43 -07:00
2019-09-07 21:42:25 +02:00
2019-09-04 13:37:17 +02:00
2019-05-06 19:40:31 -07:00
2019-08-30 07:27:17 -07:00
2019-08-01 20:51:22 +02:00
2019-08-20 17:05:05 +02:00
2019-07-31 19:03:35 +02:00
2019-07-13 10:36:53 -07:00
2019-05-15 17:35:54 +01:00
2019-07-14 16:51:47 -07:00