git: f08305316072 - stable/13 - Formatting cleanups and debugging fix.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Dec 2022 00:38:21 UTC
The branch stable/13 has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=f08305316072e2298d5f7d93e66fac226b2ec6c2 commit f08305316072e2298d5f7d93e66fac226b2ec6c2 Author: Kirk McKusick <mckusick@FreeBSD.org> AuthorDate: 2022-09-05 19:06:58 +0000 Commit: Kirk McKusick <mckusick@FreeBSD.org> CommitDate: 2022-12-11 00:37:17 +0000 Formatting cleanups and debugging fix. (cherry picked from commit 4b4cc78a762cd381111207a53ec094dd8d714506) Sponsored by: The FreeBSD Foundation --- sbin/fsck_ffs/fsutil.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sbin/fsck_ffs/fsutil.c b/sbin/fsck_ffs/fsutil.c index 923a945fc104..4a7a6b7a2574 100644 --- a/sbin/fsck_ffs/fsutil.c +++ b/sbin/fsck_ffs/fsutil.c @@ -81,9 +81,9 @@ int slowio_pollcnt; static struct bufarea cgblk; /* backup buffer for cylinder group blocks */ static TAILQ_HEAD(bufqueue, bufarea) bufqueuehd; /* head of buffer cache LRU */ static LIST_HEAD(bufhash, bufarea) bufhashhd[HASHSIZE]; /* buffer hash list */ -static int numbufs; /* size of buffer cache */ -static int cachelookups; /* number of cache lookups */ -static int cachereads; /* number of cache reads */ +static int numbufs; /* size of buffer cache */ +static int cachelookups; /* number of cache lookups */ +static int cachereads; /* number of cache reads */ static int flushtries; /* number of tries to reclaim memory */ char *buftype[BT_NUMBUFTYPES] = BT_NAMES; @@ -470,7 +470,7 @@ flush(int fd, struct bufarea *bp) pwarn("flush: INODE CHECK-HASH FAILED"); ip.i_bp = bp; ip.i_dp = (union dinode *)dp; - ip.i_number = bp->b_index + i; + ip.i_number = bp->b_index + (i / sizeof(*dp)); prtinode(&ip); if (preen || reply("FIX") != 0) { if (preen) @@ -1265,9 +1265,9 @@ prtbuf(const char *msg, struct bufarea *bp) { printf("%s: bp %p, type %s, bno %jd, size %d, refcnt %d, flags %s, " - "index %jd\n", msg, bp, BT_BUFTYPE(bp->b_type), (intmax_t) bp->b_bno, - bp->b_size, bp->b_refcnt, bp->b_flags & B_DIRTY ? "dirty" : "clean", - (intmax_t) bp->b_index); + "index %jd\n", msg, bp, BT_BUFTYPE(bp->b_type), + (intmax_t) bp->b_bno, bp->b_size, bp->b_refcnt, + bp->b_flags & B_DIRTY ? "dirty" : "clean", (intmax_t) bp->b_index); } /*