summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-03-06 00:44:30 +0000
committerdillon <dillon@FreeBSD.org>2002-03-06 00:44:30 +0000
commite05fb41e7e3849fe2987b33f4b9cadb896b6f7e3 (patch)
tree1b53e373ec0a7b2e5e151caf4fda505a846bae56 /sys/ufs
parent8dfde376a34291075c88e4a23605020a7ba8fde9 (diff)
downloadFreeBSD-src-e05fb41e7e3849fe2987b33f4b9cadb896b6f7e3.zip
FreeBSD-src-e05fb41e7e3849fe2987b33f4b9cadb896b6f7e3.tar.gz
cleanup readability syntax prior to ongoing b_resid work commits.
MFC after: 1 day
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_readwrite.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c
index e226c96..b098785 100644
--- a/sys/ufs/ufs/ufs_readwrite.c
+++ b/sys/ufs/ufs/ufs_readwrite.c
@@ -239,12 +239,12 @@ READ(ap)
if (bytesinfile < xfersize)
xfersize = bytesinfile;
- if (lblktosize(fs, nextlbn) >= ip->i_size)
+ if (lblktosize(fs, nextlbn) >= ip->i_size) {
/*
* Don't do readahead if this is the end of the file.
*/
error = bread(vp, lbn, size, NOCRED, &bp);
- else if ((vp->v_mount->mnt_flag & MNT_NOCLUSTERR) == 0)
+ } else if ((vp->v_mount->mnt_flag & MNT_NOCLUSTERR) == 0) {
/*
* Otherwise if we are allowed to cluster,
* grab as much as we can.
@@ -254,7 +254,7 @@ READ(ap)
*/
error = cluster_read(vp, ip->i_size, lbn,
size, NOCRED, uio->uio_resid, seqcount, &bp);
- else if (seqcount > 1) {
+ } else if (seqcount > 1) {
/*
* If we are NOT allowed to cluster, then
* if we appear to be acting sequentially,
@@ -266,13 +266,14 @@ READ(ap)
int nextsize = BLKSIZE(fs, ip, nextlbn);
error = breadn(vp, lbn,
size, &nextlbn, &nextsize, 1, NOCRED, &bp);
- } else
+ } else {
/*
* Failing all of the above, just read what the
* user asked for. Interestingly, the same as
* the first option above.
*/
error = bread(vp, lbn, size, NOCRED, &bp);
+ }
if (error) {
brelse(bp);
bp = NULL;
OpenPOWER on IntegriCloud