diff options
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 7145ba7a48d0..4a3ec9ad8bed 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -424,13 +424,13 @@ out: | |||
424 | 424 | ||
425 | static DEFINE_SPINLOCK(pin_fs_lock); | 425 | static DEFINE_SPINLOCK(pin_fs_lock); |
426 | 426 | ||
427 | int simple_pin_fs(char *name, struct vfsmount **mount, int *count) | 427 | int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *count) |
428 | { | 428 | { |
429 | struct vfsmount *mnt = NULL; | 429 | struct vfsmount *mnt = NULL; |
430 | spin_lock(&pin_fs_lock); | 430 | spin_lock(&pin_fs_lock); |
431 | if (unlikely(!*mount)) { | 431 | if (unlikely(!*mount)) { |
432 | spin_unlock(&pin_fs_lock); | 432 | spin_unlock(&pin_fs_lock); |
433 | mnt = do_kern_mount(name, 0, name, NULL); | 433 | mnt = vfs_kern_mount(type, 0, type->name, NULL); |
434 | if (IS_ERR(mnt)) | 434 | if (IS_ERR(mnt)) |
435 | return PTR_ERR(mnt); | 435 | return PTR_ERR(mnt); |
436 | spin_lock(&pin_fs_lock); | 436 | spin_lock(&pin_fs_lock); |