diff for duplicates of <20200611014159.yk2M6UPRg%akpm@linux-foundation.org>
diff --git a/a/1.txt b/N1/1.txt
index bf4d37e..d96d88d 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -382,4 +382,14 @@ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
- */
-void unuse_mm(struct mm_struct *mm)
-{
-- struct task_struct *tsk = current;
\ No newline at end of file
+- struct task_struct *tsk = current;
+-
+- task_lock(tsk);
+- sync_mm_rss(mm);
+- tsk->mm = NULL;
+- /* active_mm is still 'mm' */
+- enter_lazy_tlb(mm, tsk);
+- task_unlock(tsk);
+-}
+-EXPORT_SYMBOL_GPL(unuse_mm);
+_
\ No newline at end of file
diff --git a/a/content_digest b/N1/content_digest
index 69b59ec..645f896 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -418,7 +418,17 @@
"- */\n",
"-void unuse_mm(struct mm_struct *mm)\n",
"-{\n",
- "-\tstruct task_struct *tsk = current;"
+ "-\tstruct task_struct *tsk = current;\n",
+ "-\n",
+ "-\ttask_lock(tsk);\n",
+ "-\tsync_mm_rss(mm);\n",
+ "-\ttsk->mm = NULL;\n",
+ "-\t/* active_mm is still 'mm' */\n",
+ "-\tenter_lazy_tlb(mm, tsk);\n",
+ "-\ttask_unlock(tsk);\n",
+ "-}\n",
+ "-EXPORT_SYMBOL_GPL(unuse_mm);\n",
+ "_"
]
-763426bd7029c680d292d14df578980fcb1bcf352d55b8c4b995682f38b2f801
+532e497d2b0ab4b547c7aed6fcf2a970d0f4609b1d2e3b75caaa766bc1cabc0f
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.