mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-28 11:20:36 +08:00
super.c:
Remember to clear the orphaned inode list before starting to process it.
This commit is contained in:
parent
80bfaa3e40
commit
25c63ba09f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user