From owner-svn-src-head@FreeBSD.ORG Thu Jun 4 16:50:04 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E087010656C6; Thu, 4 Jun 2009 16:50:04 +0000 (UTC) (envelope-from ps@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CEBB98FC1A; Thu, 4 Jun 2009 16:50:04 +0000 (UTC) (envelope-from ps@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n54Go4FY097783; Thu, 4 Jun 2009 16:50:04 GMT (envelope-from ps@svn.freebsd.org) Received: (from ps@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n54Go34d097782; Thu, 4 Jun 2009 16:50:03 GMT (envelope-from ps@svn.freebsd.org) Message-Id: <200906041650.n54Go34d097782@svn.freebsd.org> From: Paul Saab Date: Thu, 4 Jun 2009 16:50:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193442 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 04 Jun 2009 16:50:05 -0000 Author: ps Date: Thu Jun 4 16:50:03 2009 New Revision: 193442 URL: http://svn.freebsd.org/changeset/base/193442 Log: When checking for shared writes, use the struct mount returned from vn_start_write. Reviewed by: jhb Modified: head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_vnops.c ============================================================================== --- head/sys/kern/vfs_vnops.c Thu Jun 4 16:20:19 2009 (r193441) +++ head/sys/kern/vfs_vnops.c Thu Jun 4 16:50:03 2009 (r193442) @@ -594,8 +594,7 @@ vn_write(fp, uio, active_cred, flags, td (error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0) goto unlock; - if (vp->v_mount != NULL && - (vp->v_mount->mnt_kern_flag & MNTK_SHARED_WRITES) && + if (mp != NULL && (mp->mnt_kern_flag & MNTK_SHARED_WRITES) && (flags & FOF_OFFSET) != 0) { lock_flags = LK_SHARED; } else {