]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
super.c:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Aug 2000 15:31:37 +0000 (15:31 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Aug 2000 15:31:37 +0000 (15:31 +0000)
  Remember to clear the orphaned inode list before starting to process it.

e2fsck/super.c

index c6eb51be3e4ddd6cdb1bbcd5c93e105f188ced56..3d41e81c73f58e0a45d4dadd13d9f179ec9ec758 100644 (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);