diff options
author | phk <phk@FreeBSD.org> | 2005-02-09 12:22:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-09 12:22:16 +0000 |
commit | 1bfc723633ac914fead0280812c583f51f5df76a (patch) | |
tree | 038400a6d43ec1ad3cf921c45880a438cf6c1721 /sys | |
parent | e82cfdc3bfa94cf2f28ec37b9b1ea4fe636bbd5d (diff) | |
download | FreeBSD-src-1bfc723633ac914fead0280812c583f51f5df76a.zip FreeBSD-src-1bfc723633ac914fead0280812c583f51f5df76a.tar.gz |
style polishing.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 0454e95..66c6b49 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3281,14 +3281,13 @@ softdep_disk_io_initiation(bp) * We only care about write operations. There should never * be dependencies for reads. */ - if (bp->b_iocmd == BIO_READ) - panic("softdep_disk_io_initiation: read"); + if (bp->b_iocmd != BIO_WRITE) + panic("softdep_disk_io_initiation: not write"); ACQUIRE_LOCK(&lk); /* * Do any necessary pre-I/O processing. */ - for (wk = LIST_FIRST(&bp->b_dep); wk; wk = nextwk) { - nextwk = LIST_NEXT(wk, wk_list); + LIST_FOREACH_SAFE(wk, &bp->b_dep, wk_list, nextwk) { switch (wk->wk_type) { case D_PAGEDEP: |