git: cf17c2ff11a9 - main - Flush and close getnextino cache when done using it in Pass 1b.

From: Kirk McKusick <mckusick_at_FreeBSD.org>
Date: Sat, 03 Sep 2022 21:17:10 UTC
The branch main has been updated by mckusick:

URL: https://cgit.FreeBSD.org/src/commit/?id=cf17c2ff11a9e027e92bebdb3eb3fec6727c9c03

commit cf17c2ff11a9e027e92bebdb3eb3fec6727c9c03
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-09-03 21:15:50 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-09-03 21:15:50 +0000

    Flush and close getnextino cache when done using it in Pass 1b.
    
    Reported by:  Peter Holm
    Sponsored by: The FreeBSD Foundation
---
 sbin/fsck_ffs/pass1b.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sbin/fsck_ffs/pass1b.c b/sbin/fsck_ffs/pass1b.c
index 17a3b6495dc4..e2a200b8b2f2 100644
--- a/sbin/fsck_ffs/pass1b.c
+++ b/sbin/fsck_ffs/pass1b.c
@@ -88,10 +88,12 @@ pass1b(void)
 			if (inoinfo(inumber)->ino_state != USTATE &&
 			    (ckinode(dp, &idesc) & STOP)) {
 				rerun = 1;
+				freeinodebuf();
 				return;
 			}
 		}
 	}
+	freeinodebuf();
 }
 
 static int