linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kernel/fork: Update obsolete use_mm references to kthread_use_mm
@ 2025-08-25 11:09 mingzhu.wang(王明珠)
  0 siblings, 0 replies; only message in thread
From: mingzhu.wang(王明珠) @ 2025-08-25 11:09 UTC (permalink / raw)
  To: kees@kernel.org, mingo@redhat.com, peterz@infradead.org,
	akpm@linux-foundation.org, david@redhat.com
  Cc: dietmar.eggemann@arm.com, mgorman@suse.de, vbabka@suse.cz,
	rppt@kernel.org, surenb@google.com, mhocko@suse.com,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiazi Li

The comment for get_task_mm() in kernel/fork.c incorrectly references the deprecated function `use_mm()`, which has been renamed to `kthread_use_mm()` in kernel/kthread.c.
This patch updates the documentation to reflect the current function names, ensuring accuracy when developers refer to the kernel thread memory context API.
No functional changes were introduced.

Signed-off-by: mingzhu.wang <mingzhu.wang@transsion.com>
---
 kernel/fork.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/fork.c b/kernel/fork.c index c4ada32598bd..64e228c541bc 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1312,7 +1312,7 @@ struct file *get_task_exe_file(struct task_struct *task)
  * @task: The task.
  *
  * Returns %NULL if the task has no mm.  Checks PF_KTHREAD (meaning
- * this kernel workthread has transiently adopted a user mm with use_mm,
+ * this kernel workthread has transiently adopted a user mm with 
+ kthread_use_mm,
  * to do its AIO) is not set and if so returns a reference to it, after
  * bumping up the use count.  User must release the mm via mmput()
  * after use.  Typically used by /proc and ptrace.
--
2.34.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-25 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 11:09 [PATCH] kernel/fork: Update obsolete use_mm references to kthread_use_mm mingzhu.wang(王明珠)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).