Date: Sun, 19 May 2019 09:18:10 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r347968 - head/sys/kern Message-ID: <201905190918.x4J9IAs1036579@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun May 19 09:18:09 2019 New Revision: 347968 URL: https://svnweb.freebsd.org/changeset/base/347968 Log: 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 Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c ============================================================================== --- head/sys/kern/vfs_subr.c Sun May 19 06:01:11 2019 (r347967) +++ head/sys/kern/vfs_subr.c Sun May 19 09:18:09 2019 (r347968) @@ -3146,7 +3146,7 @@ loop: if ((vp->v_type == VNON || (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); vdropl(vp); continue;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905190918.x4J9IAs1036579>