svn commit: r238411 - projects/fuse/sys/fs/fuse
Attilio Rao
attilio at FreeBSD.org
Thu Jul 12 23:00:36 UTC 2012
Author: attilio
Date: Thu Jul 12 23:00:35 2012
New Revision: 238411
URL: http://svn.freebsd.org/changeset/base/238411
Log:
Avoid to put in the mntqueue only half-constructed vnode.
Modified:
projects/fuse/sys/fs/fuse/fuse_node.c
Modified: projects/fuse/sys/fs/fuse/fuse_node.c
==============================================================================
--- projects/fuse/sys/fs/fuse/fuse_node.c Thu Jul 12 22:55:48 2012 (r238410)
+++ projects/fuse/sys/fs/fuse/fuse_node.c Thu Jul 12 23:00:35 2012 (r238411)
@@ -204,6 +204,7 @@ fuse_vnode_alloc(struct mount *mp,
return (err);
}
vn_lock(*vpp, lkflags);
+ fuse_vnode_init(*vpp, fvdat, nodeid, vtyp);
err = insmntque(*vpp, mp);
ASSERT_VOP_ELOCKED(*vpp, "fuse_vnode_alloc");
if (err) {
@@ -212,7 +213,6 @@ fuse_vnode_alloc(struct mount *mp,
*vpp = NULL;
return (err);
}
- fuse_vnode_init(*vpp, fvdat, nodeid, vtyp);
err = vfs_hash_insert(*vpp, fuse_vnode_hash(nodeid), lkflags,
td, &vp2, fuse_vnode_cmp, &nodeid);
More information about the svn-src-projects
mailing list