svn commit: r347968 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sun May 19 09:18:11 UTC 2019


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;


More information about the svn-src-all mailing list