mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
kernel/fork: update obsolete use_mm references to kthread_use_mm
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. Link: https://lkml.kernel.org/r/KUZPR04MB8965F954108B4DD7E8FFDB2B8F84A@KUZPR04MB8965.apcprd04.prod.outlook.com Signed-off-by: mingzhu.wang <mingzhu.wang@transsion.com> Cc: Ben Segall <bsegall@google.com> Cc: David Hildenbrand <david@kernel.org> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiazi Li <jqqlijiazi@gmail.com> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Kees Cook <kees@kernel.org> Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Valentin Schneider <vschneid@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
c62e7e6444
commit
2bbd9e1d14
1 changed files with 1 additions and 1 deletions
|
|
@ -1356,7 +1356,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue