vfs: hide the getvnode NULL mp message behind DIAGNOSTIC
Since crossmp vnode changes the message was being printed on each boot. Reported by: trasz Discussed with: kib
This commit is contained in:
parent
3111723c09
commit
067115e050
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312598
@ -1489,12 +1489,14 @@ getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops,
|
|||||||
vp->v_op = vops;
|
vp->v_op = vops;
|
||||||
v_init_counters(vp);
|
v_init_counters(vp);
|
||||||
vp->v_bufobj.bo_ops = &buf_ops_bio;
|
vp->v_bufobj.bo_ops = &buf_ops_bio;
|
||||||
|
#ifdef DIAGNOSTIC
|
||||||
|
if (mp == NULL && vops != &dead_vnodeops)
|
||||||
|
printf("NULL mp in getnewvnode()\n");
|
||||||
|
#endif
|
||||||
#ifdef MAC
|
#ifdef MAC
|
||||||
mac_vnode_init(vp);
|
mac_vnode_init(vp);
|
||||||
if (mp != NULL && (mp->mnt_flag & MNT_MULTILABEL) == 0)
|
if (mp != NULL && (mp->mnt_flag & MNT_MULTILABEL) == 0)
|
||||||
mac_vnode_associate_singlelabel(mp, vp);
|
mac_vnode_associate_singlelabel(mp, vp);
|
||||||
else if (mp == NULL && vops != &dead_vnodeops)
|
|
||||||
printf("NULL mp in getnewvnode()\n");
|
|
||||||
#endif
|
#endif
|
||||||
if (mp != NULL) {
|
if (mp != NULL) {
|
||||||
vp->v_bufobj.bo_bsize = mp->mnt_stat.f_iosize;
|
vp->v_bufobj.bo_bsize = mp->mnt_stat.f_iosize;
|
||||||
|
Loading…
Reference in New Issue
Block a user