Allocate v_object for the new snapshot vnode.

The vnode is not opened, so it ends up with the malloced buffers otherwise.

Reported and tested by:	pho
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2018-12-23 18:54:09 +00:00
parent 6c59824b31
commit 8690d4dea3

View File

@ -302,6 +302,7 @@ restart:
return (error);
}
vp = nd.ni_vp;
vnode_create_vobject(nd.ni_vp, fs->fs_size, td);
vp->v_vflag |= VV_SYSTEM;
ip = VTOI(vp);
devvp = ITODEVVP(ip);