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, _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"