Date: Fri, 24 Feb 2012 10:41:58 +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: r232103 - head/sys/vm Message-ID: <201202241041.q1OAfwWv055382@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Feb 24 10:41:58 2012 New Revision: 232103 URL: http://svn.freebsd.org/changeset/base/232103 Log: Place the if() at the right location, to activate the v_writecount accounting for shared writeable mappings for all filesystems, not only for the bypass layers. Submitted by: alc Pointy hat to: kib MFC after: 20 days Modified: head/sys/vm/vm_mmap.c Modified: head/sys/vm/vm_mmap.c ============================================================================== --- head/sys/vm/vm_mmap.c Fri Feb 24 07:54:08 2012 (r232102) +++ head/sys/vm/vm_mmap.c Fri Feb 24 10:41:58 2012 (r232103) @@ -1272,10 +1272,10 @@ vm_mmap_vnode(struct thread *td, vm_size VFS_UNLOCK_GIANT(vfslocked); return (error); } - if (locktype == LK_EXCLUSIVE) { - *writecounted = TRUE; - vnode_pager_update_writecount(obj, 0, objsize); - } + } + if (locktype == LK_EXCLUSIVE) { + *writecounted = TRUE; + vnode_pager_update_writecount(obj, 0, objsize); } } else if (vp->v_type == VCHR) { error = vm_mmap_cdev(td, objsize, prot, maxprotp, flagsp,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202241041.q1OAfwWv055382>