Remember to clear the orphaned inode list before starting to process it.
This commit is contained in:
Theodore Ts'o 2000-08-18 15:31:37 +00:00
parent 80bfaa3e40
commit 25c63ba09f

View File

@ -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);