summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-09 01:54:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-09 01:54:39 +0000
commitecc59a003f5b4b5ee78f7d9ea277eb48bc042824 (patch)
treed8c504133e48b07b9b964a29b419219835554cd0 /libdiskfs
parentacc0e47f4704e2192b1e58f3eff777a3343c9945 (diff)
(diskfs_S_dir_unlink): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-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 `.'. */