summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-20 14:52:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-20 14:52:00 +0000
commitb804ea90ea89990f37f2f428d8e8ebb54d53b701 (patch)
tree40a2e6ddd489b8516b6f437805b05ae3f9efae6a /sys/kern/vfs_cluster.c
parent1a702a374be862f6571bc88af23c8d4ff720a125 (diff)
Please GCC 2.8's harsher view of good style
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 924b11f1403..6ed498fc751 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cluster.c,v 1.12 1998/01/08 15:51:56 csapuntz Exp $ */
+/* $OpenBSD: vfs_cluster.c,v 1.13 1998/02/20 14:51:58 niklas Exp $ */
/* $NetBSD: vfs_cluster.c,v 1.12 1996/04/22 01:39:05 christos Exp $ */
/*-
@@ -239,18 +239,20 @@ cluster_read(vp, filesize, lblkno, size, cred, bpp)
/* XXX Kirk, do we need to make sure the bp has creds? */
skip_readahead:
- if (bp)
+ if (bp) {
if (bp->b_flags & (B_DONE | B_DELWRI))
panic("cluster_read: DONE bp");
else
error = VOP_STRATEGY(bp);
+ }
- if (rbp)
+ if (rbp) {
if (error || rbp->b_flags & (B_DONE | B_DELWRI)) {
rbp->b_flags &= ~(B_ASYNC | B_READ);
brelse(rbp);
} else
(void) VOP_STRATEGY(rbp);
+ }
/*
* Recalculate our maximum readahead