Skip to content

Commit 0f60f24

Browse files
dhowellsAl Viro
authored andcommitted
FS: lookup_mnt() is only used in the core fs routines now
lookup_mnt() is only used in the core fs routines now, so it doesn't need to be globally declared anymore. It isn't exported to modules at the moment, so nothing that can be modularised seems to be using it. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 69b195b commit 0f60f24

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/internal.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ extern int copy_mount_string(const void __user *, char **);
6464

6565
extern unsigned int mnt_get_count(struct vfsmount *mnt);
6666
extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
67+
extern struct vfsmount *lookup_mnt(struct path *);
6768
extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
6869
struct vfsmount *);
6970
extern void release_mounts(struct list_head *);

‎include/linux/dcache.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ static inline bool d_mountpoint(struct dentry *dentry)
416416
return dentry->d_flags & DCACHE_MOUNTED;
417417
}
418418

419-
extern struct vfsmount *lookup_mnt(struct path *);
420419
extern struct dentry *lookup_create(struct nameidata *nd, int is_dir);
421420

422421
extern int sysctl_vfs_cache_pressure;

0 commit comments

Comments
 (0)