aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 2fd6226d2f997..170805b64d6ff 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -2659,8 +2659,11 @@ cache_purge_negative(struct vnode *vp)
cache_free_batch(&batch);
}
+/*
+ * Entry points for modifying VOP operations.
+ */
void
-cache_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp,
+cache_vop_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp,
struct vnode *tvp, struct componentname *fcnp, struct componentname *tcnp)
{
@@ -2680,6 +2683,15 @@ cache_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp,
}
}
+void
+cache_vop_rmdir(struct vnode *dvp, struct vnode *vp)
+{
+
+ ASSERT_VOP_IN_SEQC(dvp);
+ ASSERT_VOP_IN_SEQC(vp);
+ cache_purge(vp);
+}
+
#ifdef INVARIANTS
/*
* Validate that if an entry exists it matches.