]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/libfs.c
VFS: Unexport do_kern_mount() and clean up simple_pin_fs()
[net-next-2.6.git] / fs / libfs.c
index 7145ba7a48d06329de45384b3d3bda2c607cc1a1..4a3ec9ad8bed354b2d4db49bb4adf9ba454dc466 100644 (file)
@@ -424,13 +424,13 @@ out:
 
 static DEFINE_SPINLOCK(pin_fs_lock);
 
-int simple_pin_fs(char *name, struct vfsmount **mount, int *count)
+int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *count)
 {
        struct vfsmount *mnt = NULL;
        spin_lock(&pin_fs_lock);
        if (unlikely(!*mount)) {
                spin_unlock(&pin_fs_lock);
-               mnt = do_kern_mount(name, 0, name, NULL);
+               mnt = vfs_kern_mount(type, 0, type->name, NULL);
                if (IS_ERR(mnt))
                        return PTR_ERR(mnt);
                spin_lock(&pin_fs_lock);