svn commit: r221176 - head/sys/fs/ext2fs
John Baldwin
jhb at FreeBSD.org
Thu Apr 28 17:36:27 UTC 2011
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;
}
More information about the svn-src-head
mailing list