Module Name: src Committed By: hannken Date: Sun May 25 13:46:16 UTC 2014
Modified Files: src/sys/ufs/ufs: ufs_vnops.c Log Message: ufs_mknod: use vcache_get() to reload the new node. To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/sys/ufs/ufs/ufs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ufs/ufs_vnops.c diff -u src/sys/ufs/ufs/ufs_vnops.c:1.220 src/sys/ufs/ufs/ufs_vnops.c:1.221 --- src/sys/ufs/ufs/ufs_vnops.c:1.220 Thu Jan 23 10:13:57 2014 +++ src/sys/ufs/ufs/ufs_vnops.c Sun May 25 13:46:16 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_vnops.c,v 1.220 2014/01/23 10:13:57 hannken Exp $ */ +/* $NetBSD: ufs_vnops.c,v 1.221 2014/05/25 13:46:16 hannken Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.220 2014/01/23 10:13:57 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.221 2014/05/25 13:46:16 hannken Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -225,21 +225,20 @@ ufs_mknod(void *v) UFS_WAPBL_UPDATE(*vpp, NULL, NULL, 0); UFS_WAPBL_END1(ap->a_dvp->v_mount, ap->a_dvp); /* - * Remove inode so that it will be reloaded by VFS_VGET and + * Remove inode so that it will be reloaded by vcache_get and * checked to see if it is an alias of an existing entry in * the inode cache. */ (*vpp)->v_type = VNON; VOP_UNLOCK(*vpp); vgone(*vpp); - error = VFS_VGET(mp, ino, vpp); + error = vcache_get(mp, &ino, sizeof(ino), vpp); out: fstrans_done(ap->a_dvp->v_mount); if (error != 0) { *vpp = NULL; return (error); } - VOP_UNLOCK(*vpp); return (0); }