follow_automount() doesn't need the entire nameidata
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 17 Jan 2020 03:05:18 +0000 (22:05 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Feb 2020 19:43:55 +0000 (14:43 -0500)
commit1c9f5e06a613cc48608db1a4207b8bd5ebe70a81
treee7cf80bfc47a94dc5642ac96b8adcf9f0a49473b
parent25e195aa1e607f129ab912d29fcfc79239703307
follow_automount() doesn't need the entire nameidata

Only the address of ->total_link_count and the flags.
And fix an off-by-one is ELOOP detection - make it
consistent with symlink following, where we check if
the pre-increment value has reached 40, rather than
check the post-increment one.

[kudos to Christian Brauner for spotted braino]

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