mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
cache: temporarily drop the assert that dvp != vp when adding an entry
Historically it was allowed for any names, but arguably should never be
even attempted. Allow it again since there is a release pending and
allowing it is bug-compatible with previous behavior.
Reported by: otis
(cherry picked from commit 1239a72221)
This commit is contained in:
parent
c16fc9eae3
commit
8393e034da
1 changed files with 5 additions and 0 deletions
|
|
@ -2394,7 +2394,12 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, struct componentname *cnp,
|
|||
KASSERT(cnp->cn_namelen <= NAME_MAX,
|
||||
("%s: passed len %ld exceeds NAME_MAX (%d)", __func__, cnp->cn_namelen,
|
||||
NAME_MAX));
|
||||
#ifdef notyet
|
||||
/*
|
||||
* Not everything doing this is weeded out yet.
|
||||
*/
|
||||
VNPASS(dvp != vp, dvp);
|
||||
#endif
|
||||
VNPASS(!VN_IS_DOOMED(dvp), dvp);
|
||||
VNPASS(dvp->v_type != VNON, dvp);
|
||||
if (vp != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue