diff options
author | John Baldwin <jhb@FreeBSD.org> | 2011-04-28 17:36:26 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2011-04-28 17:36:26 +0000 |
commit | 466a71d75e17a9dd386c2b6598672ff2a276f74e (patch) | |
tree | a879278b8f80628578c4bc9610f320d74aaf1791 | |
parent | 3c31540d7c146219dbabd2fdb43a34cf80b376e5 (diff) | |
download | src-466a71d75e17a9dd386c2b6598672ff2a276f74e.tar.gz src-466a71d75e17a9dd386c2b6598672ff2a276f74e.zip |
The b_dep field of buffers is always empty for ext2fs, it is only used
for SU in FFS.
Reported by: kib
Notes
Notes:
svn path=/head/; revision=221176
-rw-r--r-- | sys/fs/ext2fs/ext2_readwrite.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/fs/ext2fs/ext2_readwrite.c b/sys/fs/ext2fs/ext2_readwrite.c index a68ff3483e74..9ed6d9ffc756 100644 --- a/sys/fs/ext2fs/ext2_readwrite.c +++ b/sys/fs/ext2fs/ext2_readwrite.c @@ -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; } |