From e93a2eaf43d78c52765c39b3ce7b8d0af822cd33 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 14 Jan 1996 19:26:25 +0000 Subject: (write_node): If NP isn't translated, force DI->i_translator to 0. --- ext2fs/inode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext2fs/inode.c') diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 638e5b15..5ae1375b 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -308,6 +308,8 @@ write_node (struct node *np) di->i_blocks = st->st_blocks; di->i_flags = st->st_flags; + if (! np->istranslated) + di->i_translator = 0; /* Set dtime non-zero to indicate a deleted file. */ di->i_dtime = (st->st_mode ? 0 : di->i_mtime); -- cgit v1.2.3