From 591c809288af787a16f94b62d16a16b8ac5a53b0 Mon Sep 17 00:00:00 2001 From: kib Date: Sun, 15 Jun 2008 18:40:58 +0000 Subject: 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 --- sys/fs/tmpfs/tmpfs_subr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/fs/tmpfs/tmpfs_subr.c') 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); -- cgit v1.1