mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: Trond Myklebust <[email protected]>
This commit is contained in:
parent
bb4a58bf46
commit
1f5ce9e93a
14 changed files with 17 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue