diff options
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/mntpt.c | 2 | ||||
-rw-r--r-- | fs/afs/super.c | 2 | ||||
-rw-r--r-- | fs/afs/super.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index b5cf9e1205..99785a79d0 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c | |||
@@ -203,7 +203,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) | |||
203 | 203 | ||
204 | /* try and do the mount */ | 204 | /* try and do the mount */ |
205 | kdebug("--- attempting mount %s -o %s ---", devname, options); | 205 | kdebug("--- attempting mount %s -o %s ---", devname, options); |
206 | mnt = do_kern_mount("afs", 0, devname, options); | 206 | mnt = vfs_kern_mount(&afs_fs_type, 0, devname, options); |
207 | kdebug("--- mount result %p ---", mnt); | 207 | kdebug("--- mount result %p ---", mnt); |
208 | 208 | ||
209 | free_page((unsigned long) devname); | 209 | free_page((unsigned long) devname); |
diff --git a/fs/afs/super.c b/fs/afs/super.c index 82468df0ba..67d1f5c819 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -48,7 +48,7 @@ static void afs_put_super(struct super_block *sb); | |||
48 | 48 | ||
49 | static void afs_destroy_inode(struct inode *inode); | 49 | static void afs_destroy_inode(struct inode *inode); |
50 | 50 | ||
51 | static struct file_system_type afs_fs_type = { | 51 | struct file_system_type afs_fs_type = { |
52 | .owner = THIS_MODULE, | 52 | .owner = THIS_MODULE, |
53 | .name = "afs", | 53 | .name = "afs", |
54 | .get_sb = afs_get_sb, | 54 | .get_sb = afs_get_sb, |
diff --git a/fs/afs/super.h b/fs/afs/super.h index ac11362f4e..32de8cc6fa 100644 --- a/fs/afs/super.h +++ b/fs/afs/super.h | |||
@@ -38,6 +38,8 @@ static inline struct afs_super_info *AFS_FS_S(struct super_block *sb) | |||
38 | return sb->s_fs_info; | 38 | return sb->s_fs_info; |
39 | } | 39 | } |
40 | 40 | ||
41 | extern struct file_system_type afs_fs_type; | ||
42 | |||
41 | #endif /* __KERNEL__ */ | 43 | #endif /* __KERNEL__ */ |
42 | 44 | ||
43 | #endif /* _LINUX_AFS_SUPER_H */ | 45 | #endif /* _LINUX_AFS_SUPER_H */ |