]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf866e3e00af27941c70ab896c12e1d697eb160fb
treee7cf80bfc47a94dc5642ac96b8adcf9f0a49473b
parent68cdb192fddd53ed50f267df015e97f1ed5c5de9
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