Remove duplicated VFS_HOLD due to a mismerge.

PR:		kern/150544
Approved by:	delphij (mentor)
MFC after:	1 day
This commit is contained in:
mm 2010-09-14 12:12:18 +00:00
parent e687b4009f
commit 9525362cee

View File

@ -1226,13 +1226,6 @@ zfs_mount(vfs_t *vfsp)
if (error == 0 && ((zfsvfs_t *)vfsp->vfs_data)->z_issnap)
VFS_HOLD(mvp->v_vfsp);
/*
* Add an extra VFS_HOLD on our parent vfs so that it can't
* disappear due to a forced unmount.
*/
if (error == 0 && ((zfsvfs_t *)vfsp->vfs_data)->z_issnap)
VFS_HOLD(mvp->v_vfsp);
out:
return (error);
}