From 25c63ba09fbdb5ab0f7385af156bd18165b3e76d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 18 Aug 2000 15:31:37 +0000 Subject: [PATCH] super.c: Remember to clear the orphaned inode list before starting to process it. --- e2fsck/super.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2fsck/super.c b/e2fsck/super.c index c6eb51b..3d41e81 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -146,6 +146,13 @@ static int release_orphan_inodes(e2fsck_t ctx) if ((ino = fs->super->s_last_orphan) == 0) return 0; + /* + * Win or lose, we won't be using the head of the orphan inode + * list again. + */ + fs->super->s_last_orphan = 0; + ext2fs_mark_super_dirty(fs); + if ((ino < EXT2_FIRST_INODE(fs->super)) || (ino > fs->super->s_inodes_count)) { clear_problem_context(&pctx); -- 1.8.3.1