summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-11-12 03:34:28 +0000
committereivind <eivind@FreeBSD.org>1999-11-12 03:34:28 +0000
commit21fff7b1c21bef91f4e2371aa79dee6d9c899b3d (patch)
treebbd7a274a33855ba0b75b1c22be91fb6dfc52472 /sys/gnu
parent9a30e94971558bbe2bf2f4450cfeb7f8dc8b5e89 (diff)
downloadFreeBSD-src-21fff7b1c21bef91f4e2371aa79dee6d9c899b3d.zip
FreeBSD-src-21fff7b1c21bef91f4e2371aa79dee6d9c899b3d.tar.gz
Remove WILLRELE from VOP_RENAME
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_vnops.c9
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vnops.c9
2 files changed, 14 insertions, 4 deletions
diff --git a/sys/gnu/ext2fs/ext2_vnops.c b/sys/gnu/ext2fs/ext2_vnops.c
index 82eedd8..ee64c44 100644
--- a/sys/gnu/ext2fs/ext2_vnops.c
+++ b/sys/gnu/ext2fs/ext2_vnops.c
@@ -43,6 +43,7 @@
*
* @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
* @(#)ext2_vnops.c 8.7 (Berkeley) 2/3/94
+ * $FreeBSD$
*/
#include "opt_quota.h"
@@ -262,14 +263,18 @@ ext2_mknod(ap)
ip->i_rdev = vap->va_rdev;
}
/*
- * Remove inode so that it will be reloaded by VFS_VGET and
+ * Remove inode, then reload it through VFS_VGET so it is
* checked to see if it is an alias of an existing entry in
* the inode cache.
*/
vput(*vpp);
(*vpp)->v_type = VNON;
vgone(*vpp);
- *vpp = 0;
+ error = VFS_VGET(ap->a_dvp->v_mount, ip->i_ino, vpp);
+ if (error) {
+ *vpp = NULL;
+ return (error);
+ }
return (0);
}
diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c
index 82eedd8..ee64c44 100644
--- a/sys/gnu/fs/ext2fs/ext2_vnops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vnops.c
@@ -43,6 +43,7 @@
*
* @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
* @(#)ext2_vnops.c 8.7 (Berkeley) 2/3/94
+ * $FreeBSD$
*/
#include "opt_quota.h"
@@ -262,14 +263,18 @@ ext2_mknod(ap)
ip->i_rdev = vap->va_rdev;
}
/*
- * Remove inode so that it will be reloaded by VFS_VGET and
+ * Remove inode, then reload it through VFS_VGET so it is
* checked to see if it is an alias of an existing entry in
* the inode cache.
*/
vput(*vpp);
(*vpp)->v_type = VNON;
vgone(*vpp);
- *vpp = 0;
+ error = VFS_VGET(ap->a_dvp->v_mount, ip->i_ino, vpp);
+ if (error) {
+ *vpp = NULL;
+ return (error);
+ }
return (0);
}
OpenPOWER on IntegriCloud