kill simple_set_mnt()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 18 Mar 2011 01:31:32 +0000 (21:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 18 Mar 2011 01:31:32 +0000 (21:31 -0400)
not needed anymore, since all users (->get_sb() instances) are gone.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
include/linux/fs.h

index d7513485c1f3ca7b970aaaf3d71d57c868fe4d13..a2a01a104ab0ade129496f245acbd409b85df02a 100644 (file)
@@ -466,14 +466,6 @@ static void __mnt_unmake_readonly(struct vfsmount *mnt)
        br_write_unlock(vfsmount_lock);
 }
 
-void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb)
-{
-       mnt->mnt_sb = sb;
-       mnt->mnt_root = dget(sb->s_root);
-}
-
-EXPORT_SYMBOL(simple_set_mnt);
-
 void free_vfsmnt(struct vfsmount *mnt)
 {
        kfree(mnt->mnt_devname);
index 92f7e04aea11bb5df4332b80933ad41372d5d056..7061a8587ee32a5fe92cfaa6891bd0e120a39eb1 100644 (file)
@@ -1839,7 +1839,6 @@ extern struct dentry *mount_pseudo(struct file_system_type *, char *,
        const struct super_operations *ops,
        const struct dentry_operations *dops,
        unsigned long);
-extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
 
 static inline void sb_mark_dirty(struct super_block *sb)
 {