]> git.ipfire.org Git - thirdparty/linux.git/commit
new helper: traverse_mounts()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 17 Jan 2020 13:45:08 +0000 (08:45 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Mar 2020 01:09:12 +0000 (21:09 -0400)
commit9deed3ebca244663530782631834e706a86a8c8f
tree0585a8e9a7e7588266c4d6a725177fb073bad933
parentea936aeb3ead0551945c85ff7a7d77d9a7259664
new helper: traverse_mounts()

common guts of follow_down() and follow_managed() taken to a new
helper - traverse_mounts().  The remnants of follow_managed()
are folded into its sole remaining caller (handle_mounts()).
Calling conventions of handle_mounts() slightly sanitized -
instead of the weird "1 for success, -E... for failure" that used
to be imposed by the calling conventions of walk_component() et.al.
we can use the normal "0 for success, -E... for failure".

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c