summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-15 22:31:33 +0000
committerMiles Bader <miles@gnu.org>1996-01-15 22:31:33 +0000
commitcd24cb884f5ae0787e9f9094e7d5a5447c369271 (patch)
tree27d1b1883e948302ea28e28b8666e756d9fbc10d /ext2fs
parentb7c578fbeff3415ed20d9938b397bea0eb0c10ff (diff)
(diskfs_node_norefs): When losing our in-core copy of an inode, remember
which indirect blocks still have to be written.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index 5ae1375b..2afe44cd 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -137,6 +137,10 @@ diskfs_node_norefs (struct node *np)
free (np->dn->dirents);
assert (!np->dn->pager);
+ /* Move any pending writes of indirect blocks. */
+ pokel_inherit (&global_pokel, &np->dn->indir_pokel);
+ pokel_finalize (&np->dn->indir_pokel);
+
free (np->dn);
free (np);
}