Do not redo the vnode tear-down work already done by insmntque() when
vnode cannot be put on the vnode list for mount. Reported and tested by: marck Guilty party: me MFC after: 3 days
This commit is contained in:
parent
38ad9366dc
commit
a0b454dc4b
@ -391,11 +391,8 @@ loop:
|
||||
|
||||
vnode_pager_setsize(vp, node->tn_size);
|
||||
error = insmntque(vp, mp);
|
||||
if (error) {
|
||||
vgone(vp);
|
||||
vput(vp);
|
||||
if (error)
|
||||
vp = NULL;
|
||||
}
|
||||
|
||||
unlock:
|
||||
TMPFS_NODE_LOCK(node);
|
||||
|
Loading…
x
Reference in New Issue
Block a user