Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Sep 2022 21:17:10 GMT
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: cf17c2ff11a9 - main - Flush and close getnextino cache when done using it in Pass 1b.
Message-ID:  <202209032117.283LHAsI083688@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209032117.283LHAsI083688>