summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-06-15 18:40:58 +0000
committerkib <kib@FreeBSD.org>2008-06-15 18:40:58 +0000
commit591c809288af787a16f94b62d16a16b8ac5a53b0 (patch)
tree4be632d8cde10630699ad6cfcec23015c693118f /sys/fs/tmpfs
parent974e7b1858717fc53ebd08e616921d3e25b6aac2 (diff)
downloadFreeBSD-src-591c809288af787a16f94b62d16a16b8ac5a53b0.zip
FreeBSD-src-591c809288af787a16f94b62d16a16b8ac5a53b0.tar.gz
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
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index cc1b75f..0c537c4 100644
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -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);
OpenPOWER on IntegriCloud