version 1.68, 2019/02/05 09:49:44 |
version 1.69, 2019/02/20 10:07:27 |
Line 149 vfs_mountalloc(struct vfsops *vfsops, vn |
|
Line 149 vfs_mountalloc(struct vfsops *vfsops, vn |
|
{ |
{ |
struct mount *mp; |
struct mount *mp; |
int error __diagused; |
int error __diagused; |
extern struct vfsops dead_vfsops; |
|
|
|
mp = kmem_zalloc(sizeof(*mp), KM_SLEEP); |
mp = kmem_zalloc(sizeof(*mp), KM_SLEEP); |
mp->mnt_op = vfsops; |
mp->mnt_op = vfsops; |
Line 159 vfs_mountalloc(struct vfsops *vfsops, vn |
|
Line 158 vfs_mountalloc(struct vfsops *vfsops, vn |
|
mutex_init(&mp->mnt_updating, MUTEX_DEFAULT, IPL_NONE); |
mutex_init(&mp->mnt_updating, MUTEX_DEFAULT, IPL_NONE); |
mp->mnt_vnodecovered = vp; |
mp->mnt_vnodecovered = vp; |
mount_initspecific(mp); |
mount_initspecific(mp); |
if (vfsops != &dead_vfsops) { |
|
error = fstrans_mount(mp); |
error = fstrans_mount(mp); |
KASSERT(error == 0); |
KASSERT(error == 0); |
} |
|
|
|
mutex_enter(&mountgen_lock); |
mutex_enter(&mountgen_lock); |
mp->mnt_gen = mountgen++; |
mp->mnt_gen = mountgen++; |