switch try_to_unlazy_next() to __legitimize_mnt()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 Jul 2022 16:22:46 +0000 (12:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 Jul 2022 20:18:21 +0000 (16:18 -0400)
commit7e4745a09426b3fe63e9fbea3190e0f8500820a4
tree3525e8aa941a4590b3ba161d5260fb90deb7e379
parent51c6546c30ea6efe9aa819015bd61ffefc910944
switch try_to_unlazy_next() to __legitimize_mnt()

The tricky case (__legitimize_mnt() failing after having grabbed
a reference) can be trivially dealt with by leaving nd->path.mnt
non-NULL, for terminate_walk() to drop it.

legitimize_mnt() becomes static after that.

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