]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: cleanup show_mountinfo
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 17 Oct 2012 16:29:36 +0000 (20:29 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Dec 2014 13:27:15 +0000 (08:27 -0500)
commite47b1740762a23d3d2511669ab27aa92332d9a5a
tree21583c59652b5e9a3a367e051185775b65ac787f
parentdacc4b3139ea2ce7c51066e7ed924db21930a48c
vfs: cleanup show_mountinfo

Starting with commit v3.2-rc4-1-g02125a8, seq_path_root() no longer
changes the value of its "struct path *root" argument.
Starting with commit v3.2-rc7-104-g8c9379e, the "struct path *root"
argument of seq_path_root() is const.
As result, the temporary variable "root" in show_mountinfo() that
holds a copy of struct path root is no longer needed.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc_namespace.c