Skip to content
Commit e4b4e441 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

fs/proc: re-factor proc_pid_cmdline_read() a bit



This is a pure refactoring of the function, preparing for some further
cleanups.  The thing was pretty illegible, and the core functionality
still is, but now the core loop is a bit more isolated from the thing
that goes on around it.

This was "inspired" by the confluence of kworker workqueue name cleanups
by Tejun, currently scheduled for 4.18, and commit 7f7ccc2c ("proc:
do not access cmdline nor environ from file-backed areas").

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 58ddfe6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment