mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue