Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- mm/internal.h | 10 ++++++++++
+ include/linux/mm.h | 10 ++++++++++
1 file changed, 10 insertions(+)
---- a/mm/internal.h
-+++ b/mm/internal.h
-@@ -850,6 +850,16 @@ static inline bool vma_soft_dirty_enable
- return false;
+--- a/include/linux/mm.h
++++ b/include/linux/mm.h
+@@ -3092,6 +3092,16 @@ static inline bool gup_must_unshare(unsi
+ smp_rmb();
/*
+ * During GUP-fast we might not get called on the head page for a
+ page = compound_head(page);
+
+ /*
- * Soft-dirty is kind of special: its tracking is enabled when the
- * vma flags not set.
+ * Note that PageKsm() pages cannot be exclusive, and consequently,
+ * cannot get pinned.
*/