[BACK]Return to vfs_mount.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/vfs_mount.c between version 1.68 and 1.69

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++;

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

CVSweb <webmaster@jp.NetBSD.org>