Lines Matching refs:mnt
1195 struct vfsmount *mnt; in mount_subvol() local
1201 mnt = vfs_kern_mount(&btrfs_fs_type, flags, device_name, in mount_subvol()
1204 if (PTR_RET(mnt) == -EBUSY) { in mount_subvol()
1206 mnt = vfs_kern_mount(&btrfs_fs_type, flags & ~MS_RDONLY, device_name, in mount_subvol()
1210 mnt = vfs_kern_mount(&btrfs_fs_type, flags | MS_RDONLY, device_name, in mount_subvol()
1212 if (IS_ERR(mnt)) { in mount_subvol()
1214 return ERR_CAST(mnt); in mount_subvol()
1217 r = btrfs_remount(mnt->mnt_sb, &flags, NULL); in mount_subvol()
1228 if (IS_ERR(mnt)) in mount_subvol()
1229 return ERR_CAST(mnt); in mount_subvol()
1231 root = mount_subtree(mnt, subvol_name); in mount_subvol()