aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2021-09-22 23:16:39 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2021-09-22 23:20:19 +0000
commitb31c5a25321363ab95c1642dffc6e92319dc42ce (patch)
tree135e1a3b37c411e9845c3baed2ae0d03cff34524
parentebbc3140ca0d7eee154f7a67ccdae7d3d88d13fd (diff)
downloadsrc-b31c5a25321363ab95c1642dffc6e92319dc42ce.tar.gz
src-b31c5a25321363ab95c1642dffc6e92319dc42ce.zip
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
-rw-r--r--sbin/fsck_ffs/dir.c1
1 files changed, 0 insertions, 1 deletions
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);