summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/dir-unlink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdiskfs/dir-unlink.c b/libdiskfs/dir-unlink.c
index 05db77a9..bf486f8a 100644
--- a/libdiskfs/dir-unlink.c
+++ b/libdiskfs/dir-unlink.c
@@ -1,5 +1,5 @@
/* libdiskfs implementation of fs.defs: dir_unlink
- Copyright (C) 1992, 1993, 1994 Free Software Foundation
+ Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -61,6 +61,8 @@ diskfs_S_dir_unlink (struct protid *dircred,
}
error = diskfs_dirremove (dnp, ds);
+ if (diskfs_synchronous)
+ diskfs_node_update (dnp, 1);
if (error)
{
diskfs_nput (np);
@@ -70,6 +72,8 @@ diskfs_S_dir_unlink (struct protid *dircred,
np->dn_stat.st_nlink--;
np->dn_set_ctime = 1;
+ if (diskfs_synchronous)
+ diskfs_node_update (np, 1);
/* This check is necessary because we might get here on an error while
checking the mode on something which happens to be `.'. */