diff --git a/e2fsck/super.c b/e2fsck/super.c index c6eb51be..3d41e81c 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);