Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f5ce9e9 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

VFS: Unexport do_kern_mount() and clean up simple_pin_fs()



Replace all module uses with the new vfs_kern_mount() interface, and fix up
simple_pin_fs().

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent bb4a58bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ following procedure:

 (2) Have the follow_link() op do the following steps:

     (a) Call do_kern_mount() to call the appropriate filesystem to set up a
     (a) Call vfs_kern_mount() to call the appropriate filesystem to set up a
         superblock and gain a vfsmount structure representing it.

     (b) Copy the nameidata provided as an argument and substitute the dentry
+1 −1
Original line number Diff line number Diff line
@@ -569,7 +569,7 @@ static int create_special_files (void)
	ignore_mount = 1;

	/* create the devices special file */
	retval = simple_pin_fs("usbfs", &usbfs_mount, &usbfs_mount_count);
	retval = simple_pin_fs(&usb_fs_type, &usbfs_mount, &usbfs_mount_count);
	if (retval) {
		err ("Unable to get usbfs mount");
		goto exit;
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)

	/* try and do the mount */
	kdebug("--- attempting mount %s -o %s ---", devname, options);
	mnt = do_kern_mount("afs", 0, devname, options);
	mnt = vfs_kern_mount(&afs_fs_type, 0, devname, options);
	kdebug("--- mount result %p ---", mnt);

	free_page((unsigned long) devname);
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ static void afs_put_super(struct super_block *sb);

static void afs_destroy_inode(struct inode *inode);

static struct file_system_type afs_fs_type = {
struct file_system_type afs_fs_type = {
	.owner		= THIS_MODULE,
	.name		= "afs",
	.get_sb		= afs_get_sb,
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ static inline struct afs_super_info *AFS_FS_S(struct super_block *sb)
	return sb->s_fs_info;
}

extern struct file_system_type afs_fs_type;

#endif /* __KERNEL__ */

#endif /* _LINUX_AFS_SUPER_H */
Loading