瀏覽代碼

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>
David Howells 14 年之前
父節點
當前提交
0f60f240d5
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 1 0
      fs/internal.h
  2. 0 1
      include/linux/dcache.h

+ 1 - 0
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 unsigned int mnt_get_count(struct vfsmount *mnt);
 extern struct vfsmount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
 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 *,
 extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
 				struct vfsmount *);
 				struct vfsmount *);
 extern void release_mounts(struct list_head *);
 extern void release_mounts(struct list_head *);

+ 0 - 1
include/linux/dcache.h

@@ -416,7 +416,6 @@ static inline bool d_mountpoint(struct dentry *dentry)
 	return dentry->d_flags & DCACHE_MOUNTED;
 	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 struct dentry *lookup_create(struct nameidata *nd, int is_dir);
 
 
 extern int sysctl_vfs_cache_pressure;
 extern int sysctl_vfs_cache_pressure;