From cd24cb884f5ae0787e9f9094e7d5a5447c369271 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 15 Jan 1996 22:31:33 +0000 Subject: (diskfs_node_norefs): When losing our in-core copy of an inode, remember which indirect blocks still have to be written. --- ext2fs/inode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext2fs') 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); } -- cgit v1.2.3