]> git.baikalelectronics.ru Git - kernel.git/commit
mm: extract exe_file handling from procfs
authorJiri Slaby <jslaby@suse.cz>
Thu, 26 May 2011 23:25:46 +0000 (16:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:36 +0000 (17:12 -0700)
commitc75e18612f4b2b51dd9972c432cd379d46142f9d
tree1c517a970194f9e49ef98ef434c650771ffa31e1
parentd199c4a2d3525f8298f8a9c22fa667167716560b
mm: extract exe_file handling from procfs

Setup and cleanup of mm_struct->exe_file is currently done in fs/proc/.
This was because exe_file was needed only for /proc/<pid>/exe.  Since we
will need the exe_file functionality also for core dumps (so core name can
contain full binary path), built this functionality always into the
kernel.

To achieve that move that out of proc FS to the kernel/ where in fact it
should belong.  By doing that we can make dup_mm_exe_file static.  Also we
can drop linux/proc_fs.h inclusion in fs/exec.c and kernel/fork.c.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
fs/proc/base.c
include/linux/mm.h
include/linux/mm_types.h
include/linux/proc_fs.h
kernel/fork.c