Remove VI_MOUNT flag from vnode on VFS_MOUNT() failure.

This commit is contained in:
Pawel Jakub Dawidek 2010-09-09 07:55:13 +00:00
parent 1901fd2ffe
commit 4946fa6791

View File

@ -856,6 +856,9 @@ vfs_domount_first(
if (error != 0) {
vfs_unbusy(mp);
vfs_mount_destroy(mp);
VI_LOCK(vp);
vp->v_iflag &= ~VI_MOUNT;
VI_UNLOCK(vp);
vrele(vp);
return (error);
}