git: b31c5a253213 - main - Eliminate an unnecessary rerun request in fsck_ffs.
Kirk McKusick
mckusick at FreeBSD.org
Wed Sep 22 23:20:58 UTC 2021
The branch main has been updated by mckusick:
URL: https://cgit.FreeBSD.org/src/commit/?id=b31c5a25321363ab95c1642dffc6e92319dc42ce
commit b31c5a25321363ab95c1642dffc6e92319dc42ce
Author: Kirk McKusick <mckusick at FreeBSD.org>
AuthorDate: 2021-09-22 23:16:39 +0000
Commit: Kirk McKusick <mckusick at FreeBSD.org>
CommitDate: 2021-09-22 23:20:19 +0000
Eliminate an unnecessary rerun request in fsck_ffs.
When fsck_ffs is running in preen mode and finds a zero-length directory,
it deletes that directory. In doing this operation, it unnecessary set
its internal flag saying that fsck_ffs needed to be rerun. This patch
deletes the rerun request for this case.
Reported by: Mark Johnson
PR: 246962
MFC after: 1 week
Sponsored by: Netflix
---
sbin/fsck_ffs/dir.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c
index e806f113ff16..42ecf4112253 100644
--- a/sbin/fsck_ffs/dir.c
+++ b/sbin/fsck_ffs/dir.c
@@ -132,7 +132,6 @@ dirscan(struct inodesc *idesc)
(size_t)dsize);
dirty(bp);
sbdirty();
- rerun = 1;
}
if (n & STOP)
return (n);
More information about the dev-commits-src-all
mailing list