From: Theodore Ts'o Date: Fri, 18 Aug 2000 15:31:37 +0000 (+0000) Subject: super.c: X-Git-Tag: E2FSPROGS-1_20~252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25c63ba09fbdb5ab0f7385af156bd18165b3e76d;p=thirdparty%2Fe2fsprogs.git super.c: Remember to clear the orphaned inode list before starting to process it. --- diff --git a/e2fsck/super.c b/e2fsck/super.c index c6eb51be3..3d41e81c7 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);