1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Fix rw->ro remount when there is a text vnode mapping.

Reported and tested by:	hrs
Sponsored by:	The FreeBSD Foundation
MFC after:	16 days
This commit is contained in:
Konstantin Belousov 2019-05-19 09:18:09 +00:00
parent bc97490af6
commit 5422b0e63d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347968

View File

@ -3146,7 +3146,7 @@ vflush(struct mount *mp, int rootrefs, int flags, struct thread *td)
if ((vp->v_type == VNON || if ((vp->v_type == VNON ||
(error == 0 && vattr.va_nlink > 0)) && (error == 0 && vattr.va_nlink > 0)) &&
(vp->v_writecount == 0 || vp->v_type != VREG)) { (vp->v_writecount <= 0 || vp->v_type != VREG)) {
VOP_UNLOCK(vp, 0); VOP_UNLOCK(vp, 0);
vdropl(vp); vdropl(vp);
continue; continue;