diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-07-05 18:22:46 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-07-05 22:18:21 +0200 |
commit | 7e4745a09426b3fe63e9fbea3190e0f8500820a4 (patch) | |
tree | 3525e8aa941a4590b3ba161d5260fb90deb7e379 /fs/mount.h | |
parent | follow_dotdot{,_rcu}(): change calling conventions (diff) | |
download | linux-7e4745a09426b3fe63e9fbea3190e0f8500820a4.tar.xz linux-7e4745a09426b3fe63e9fbea3190e0f8500820a4.zip |
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>
Diffstat (limited to 'fs/mount.h')
-rw-r--r-- | fs/mount.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/mount.h b/fs/mount.h index 0b6e08cf8afb..130c07c2f8d2 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -100,7 +100,6 @@ static inline int is_mounted(struct vfsmount *mnt) extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *); extern int __legitimize_mnt(struct vfsmount *, unsigned); -extern bool legitimize_mnt(struct vfsmount *, unsigned); static inline bool __path_is_mountpoint(const struct path *path) { |