projects/linux·commit 0f60f240

FS: lookup_mnt() is only used in the core fs routines now

0f60f240 · David Howells <[email protected]> · 2011-03-21 14:28:58 +00:00

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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Commit
0f60f240d522772467c7d2cebedb910748c78ed4
Parents
69b195be

Changes

2 files changed · +1 −1

FileStatusAddDelContent
fs/internal.hmodified+1−0View file
include/linux/dcache.hmodified+0−1View file

fs/internal.h

View file
diff --git a/fs/internal.h b/fs/internal.h
index 1719154..8318059 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -64,6 +64,7 @@ extern int copy_mount_string(const void __user *, char **);
extern unsigned int mnt_get_count(struct vfsmount *mnt);
extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
+extern struct vfsmount *lookup_mnt(struct path *);
extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
struct vfsmount *);
extern void release_mounts(struct list_head *);

include/linux/dcache.h

View file
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 1a87760..f2afed4 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -416,7 +416,6 @@ static inline bool d_mountpoint(struct dentry *dentry)
return dentry->d_flags & DCACHE_MOUNTED;
}
-extern struct vfsmount *lookup_mnt(struct path *);
extern struct dentry *lookup_create(struct nameidata *nd, int is_dir);
extern int sysctl_vfs_cache_pressure;