vfs: assert that VI_TEXT_REF is not already set
This commit is contained in:
parent
3c5d2ed71f
commit
5faf134cce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364282
@ -1186,6 +1186,7 @@ vop_stdset_text(struct vop_set_text_args *ap)
|
||||
mp = vp->v_mount;
|
||||
if (mp != NULL && (mp->mnt_kern_flag & MNTK_TEXT_REFS) != 0 &&
|
||||
vp->v_writecount == 0) {
|
||||
VNPASS((vp->v_iflag & VI_TEXT_REF) == 0, vp);
|
||||
vp->v_iflag |= VI_TEXT_REF;
|
||||
vrefl(vp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user