Lines Matching refs:mnt
15 struct vfsmount *mnt; in blob_to_mnt() local
24 mnt = kern_mount(type); in blob_to_mnt()
26 if (IS_ERR(mnt)) in blob_to_mnt()
27 return mnt; in blob_to_mnt()
29 file = file_open_root_mnt(mnt, name, O_CREAT | O_WRONLY, 0700); in blob_to_mnt()
31 kern_unmount(mnt); in blob_to_mnt()
41 kern_unmount(mnt); in blob_to_mnt()
50 return mnt; in blob_to_mnt()
62 struct vfsmount *mnt; in umd_load_blob() local
64 if (WARN_ON_ONCE(info->wd.dentry || info->wd.mnt)) in umd_load_blob()
67 mnt = blob_to_mnt(data, len, info->driver_name); in umd_load_blob()
68 if (IS_ERR(mnt)) in umd_load_blob()
69 return PTR_ERR(mnt); in umd_load_blob()
71 info->wd.mnt = mnt; in umd_load_blob()
72 info->wd.dentry = mnt->mnt_root; in umd_load_blob()
84 if (WARN_ON_ONCE(!info->wd.mnt || in umd_unload_blob()
86 info->wd.mnt->mnt_root != info->wd.dentry)) in umd_unload_blob()
89 kern_unmount(info->wd.mnt); in umd_unload_blob()
90 info->wd.mnt = NULL; in umd_unload_blob()