From owner-svn-src-head@freebsd.org Wed Sep 23 07:44:08 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 743FAA07917; Wed, 23 Sep 2015 07:44:08 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64FD313B2; Wed, 23 Sep 2015 07:44:08 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8N7i8IS007320; Wed, 23 Sep 2015 07:44:08 GMT (envelope-from jeff@FreeBSD.org) Received: (from jeff@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8N7i8hs007319; Wed, 23 Sep 2015 07:44:08 GMT (envelope-from jeff@FreeBSD.org) Message-Id: <201509230744.t8N7i8hs007319@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jeff set sender to jeff@FreeBSD.org using -f From: Jeff Roberson Date: Wed, 23 Sep 2015 07:44:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288144 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 07:44:08 -0000 Author: jeff Date: Wed Sep 23 07:44:07 2015 New Revision: 288144 URL: https://svnweb.freebsd.org/changeset/base/288144 Log: - Fix a nonsense reordering that somehow slipped into my last diff. Reported by: pho Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c ============================================================================== --- head/sys/kern/vfs_bio.c Wed Sep 23 05:39:20 2015 (r288143) +++ head/sys/kern/vfs_bio.c Wed Sep 23 07:44:07 2015 (r288144) @@ -2090,6 +2090,8 @@ vfs_vmio_invalidate(struct buf *bp) if (m == bogus_page) panic("vfs_vmio_invalidate: Unexpected bogus page."); + presid = resid > (PAGE_SIZE - poffset) ? + (PAGE_SIZE - poffset) : resid; KASSERT(presid >= 0, ("brelse: extra page")); while (vm_page_xbusied(m)) { vm_page_lock(m); @@ -2097,8 +2099,6 @@ vfs_vmio_invalidate(struct buf *bp) vm_page_busy_sleep(m, "mbncsh"); VM_OBJECT_WLOCK(obj); } - presid = resid > (PAGE_SIZE - poffset) ? - (PAGE_SIZE - poffset) : resid; if (pmap_page_wired_mappings(m) == 0) vm_page_set_invalid(m, poffset, presid); resid -= presid;