瀏覽代碼

Take vfsmount_lock to fs/internal.h

no more users left outside of fs/*.c (and very few outside of
fs/namespace.c, actually)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 15 年之前
父節點
當前提交
47cd813f29
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 2 0
      fs/internal.h
  2. 0 1
      include/linux/mount.h

+ 2 - 0
fs/internal.h

@@ -70,6 +70,8 @@ extern struct vfsmount *copy_tree(struct vfsmount *, struct dentry *, int);
 
 
 extern void __init mnt_init(void);
 extern void __init mnt_init(void);
 
 
+extern spinlock_t vfsmount_lock;
+
 /*
 /*
  * fs_struct.c
  * fs_struct.c
  */
  */

+ 0 - 1
include/linux/mount.h

@@ -132,7 +132,6 @@ extern int do_add_mount(struct vfsmount *newmnt, struct path *path,
 
 
 extern void mark_mounts_for_expiry(struct list_head *mounts);
 extern void mark_mounts_for_expiry(struct list_head *mounts);
 
 
-extern spinlock_t vfsmount_lock;
 extern dev_t name_to_dev_t(char *name);
 extern dev_t name_to_dev_t(char *name);
 
 
 #endif /* _LINUX_MOUNT_H */
 #endif /* _LINUX_MOUNT_H */