proc: Consolidate task->comm formatting into proc_task_name()
authorTejun Heo <tj@kernel.org>
Fri, 18 May 2018 15:47:13 +0000 (08:47 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 18 May 2018 15:47:13 +0000 (08:47 -0700)
commit88b72b31e15f9dfed069ede5416bb71040e0d299
tree0965c46c2b8daeed787781fd0ee62b6333ec513f
parent8bf895931ee3b635888b5a302055f97362c92d79
proc: Consolidate task->comm formatting into proc_task_name()

proc shows task->comm in three places - comm, stat, status - and each
is fetching and formatting task->comm slighly differently.  This patch
renames task_name() to proc_task_name(), makes it more generic, and
updates all three paths to use it.

This will enable expanding comm reporting for workqueue workers.

Signed-off-by: Tejun Heo <tj@kernel.org>
fs/proc/array.c
fs/proc/base.c
fs/proc/internal.h