diff options
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_bmap.c | 12 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ext2_ihash.c | 8 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_bmap.c | 12 |
3 files changed, 21 insertions, 11 deletions
diff --git a/sys/gnu/ext2fs/ext2_bmap.c b/sys/gnu/ext2fs/ext2_bmap.c index 6f38edc..f3009bd 100644 --- a/sys/gnu/ext2fs/ext2_bmap.c +++ b/sys/gnu/ext2fs/ext2_bmap.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_bmap.c 8.6 (Berkeley) 1/21/94 - * $Id$ + * $Id: ufs_bmap.c,v 1.3 1994/08/02 07:54:52 davidg Exp $ */ #include <sys/param.h> @@ -54,6 +54,8 @@ #include <ufs/ufs/ufsmount.h> #include <ufs/ufs/ufs_extern.h> +int ufs_bmaparray __P((struct vnode *, daddr_t, daddr_t *, struct indir *, int *, int *)); + /* * Bmap converts a the logical block number of a file to its physical block * number on the disk. The conversion is done by using the logical block @@ -137,7 +139,8 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) xap = ap == NULL ? a : ap; if (!nump) nump = # - if (error = ufs_getlbns(vp, bn, xap, nump)) + error = ufs_getlbns(vp, bn, xap, nump); + if (error) return (error); num = *nump; @@ -165,7 +168,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) */ metalbn = xap->in_lbn; - if (daddr == 0 && !incore(vp, metalbn) || metalbn == bn) + if ((daddr == 0 && !incore(vp, metalbn)) || metalbn == bn) break; /* * If we get here, we've either got the block in the cache @@ -189,7 +192,8 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) bp->b_flags |= B_READ; VOP_STRATEGY(bp); curproc->p_stats->p_ru.ru_inblock++; /* XXX */ - if (error = biowait(bp)) { + error = biowait(bp); + if (error) { brelse(bp); return (error); } diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c index 45c1466..ce5b0f8 100644 --- a/sys/gnu/ext2fs/ext2_ihash.c +++ b/sys/gnu/ext2fs/ext2_ihash.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_ihash.c 8.4 (Berkeley) 12/30/93 - * $Id: ufs_ihash.c,v 1.2 1994/08/02 07:54:55 davidg Exp $ + * $Id: ufs_ihash.c,v 1.3 1994/10/06 21:07:01 davidg Exp $ */ #include <sys/param.h> @@ -122,7 +122,8 @@ ufs_ihashins(ip) struct inode **ipp, *iq; ipp = &ihashtbl[INOHASH(ip->i_dev, ip->i_number)]; - if (iq = *ipp) + iq = *ipp; + if (iq) iq->i_prev = &ip->i_next; ip->i_next = iq; ip->i_prev = ipp; @@ -145,7 +146,8 @@ ufs_ihashrem(ip) { register struct inode *iq; - if (iq = ip->i_next) + iq = ip->i_next; + if (iq) iq->i_prev = ip->i_prev; *ip->i_prev = iq; #ifdef DIAGNOSTIC diff --git a/sys/gnu/fs/ext2fs/ext2_bmap.c b/sys/gnu/fs/ext2fs/ext2_bmap.c index 6f38edc..f3009bd 100644 --- a/sys/gnu/fs/ext2fs/ext2_bmap.c +++ b/sys/gnu/fs/ext2fs/ext2_bmap.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)ufs_bmap.c 8.6 (Berkeley) 1/21/94 - * $Id$ + * $Id: ufs_bmap.c,v 1.3 1994/08/02 07:54:52 davidg Exp $ */ #include <sys/param.h> @@ -54,6 +54,8 @@ #include <ufs/ufs/ufsmount.h> #include <ufs/ufs/ufs_extern.h> +int ufs_bmaparray __P((struct vnode *, daddr_t, daddr_t *, struct indir *, int *, int *)); + /* * Bmap converts a the logical block number of a file to its physical block * number on the disk. The conversion is done by using the logical block @@ -137,7 +139,8 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) xap = ap == NULL ? a : ap; if (!nump) nump = # - if (error = ufs_getlbns(vp, bn, xap, nump)) + error = ufs_getlbns(vp, bn, xap, nump); + if (error) return (error); num = *nump; @@ -165,7 +168,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) */ metalbn = xap->in_lbn; - if (daddr == 0 && !incore(vp, metalbn) || metalbn == bn) + if ((daddr == 0 && !incore(vp, metalbn)) || metalbn == bn) break; /* * If we get here, we've either got the block in the cache @@ -189,7 +192,8 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp) bp->b_flags |= B_READ; VOP_STRATEGY(bp); curproc->p_stats->p_ru.ru_inblock++; /* XXX */ - if (error = biowait(bp)) { + error = biowait(bp); + if (error) { brelse(bp); return (error); } |