From owner-svn-src-head@FreeBSD.ORG Thu Apr 28 17:36:27 2011 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 0B18F106564A; Thu, 28 Apr 2011 17:36:27 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EFD298FC0A; Thu, 28 Apr 2011 17:36:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p3SHaQvu032996; Thu, 28 Apr 2011 17:36:26 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p3SHaQhl032994; Thu, 28 Apr 2011 17:36:26 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201104281736.p3SHaQhl032994@svn.freebsd.org> From: John Baldwin Date: Thu, 28 Apr 2011 17:36:26 +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: r221176 - head/sys/fs/ext2fs 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, 28 Apr 2011 17:36:27 -0000 Author: jhb Date: Thu Apr 28 17:36:26 2011 New Revision: 221176 URL: http://svn.freebsd.org/changeset/base/221176 Log: The b_dep field of buffers is always empty for ext2fs, it is only used for SU in FFS. Reported by: kib Modified: head/sys/fs/ext2fs/ext2_readwrite.c Modified: head/sys/fs/ext2fs/ext2_readwrite.c ============================================================================== --- head/sys/fs/ext2fs/ext2_readwrite.c Thu Apr 28 16:29:19 2011 (r221175) +++ head/sys/fs/ext2fs/ext2_readwrite.c Thu Apr 28 17:36:26 2011 (r221176) @@ -162,8 +162,7 @@ READ(ap) if (error) break; - if ((ioflag & (IO_VMIO|IO_DIRECT)) && - (LIST_FIRST(&bp->b_dep) == NULL)) { + if (ioflag & (IO_VMIO|IO_DIRECT)) { /* * If there are no dependencies, and it's VMIO, * then we don't need the buf, mark it available @@ -189,8 +188,7 @@ READ(ap) * so it must have come from a 'break' statement */ if (bp != NULL) { - if ((ioflag & (IO_VMIO|IO_DIRECT)) && - (LIST_FIRST(&bp->b_dep) == NULL)) { + if (ioflag & (IO_VMIO|IO_DIRECT)) { bp->b_flags |= B_RELBUF; brelse(bp); } else { @@ -319,8 +317,7 @@ WRITE(ap) error = uiomove((char *)bp->b_data + blkoffset, (int)xfersize, uio); - if ((ioflag & (IO_VMIO|IO_DIRECT)) && - (LIST_EMPTY(&bp->b_dep))) { /* in ext2fs? */ + if (ioflag & (IO_VMIO|IO_DIRECT)) { bp->b_flags |= B_RELBUF; }