diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2022-10-24 15:34:57 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2022-10-24 15:37:43 +0000 |
commit | d653aaec7a311a7d1455e9721904b2a341b32a65 (patch) | |
tree | 42690a2c60640ed5ce95410e3766c2f62d772cf3 /sys/kern/vfs_cache.c | |
parent | 9cf5db63698b3c73edd632412bf68735d3c20d37 (diff) | |
download | src-d653aaec7a311a7d1455e9721904b2a341b32a65.tar.gz src-d653aaec7a311a7d1455e9721904b2a341b32a65.zip |
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 5f72506549bd..e58d3f338085 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -2998,6 +2998,15 @@ cache_validate(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) } mtx_unlock(blp); } + +void +cache_assert_no_entries(struct vnode *vp) +{ + + VNPASS(TAILQ_EMPTY(&vp->v_cache_dst), vp); + VNPASS(LIST_EMPTY(&vp->v_cache_src), vp); + VNPASS(vp->v_cache_dd == NULL, vp); +} #endif /* |