summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-17 19:15:32 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-17 19:15:32 +0000
commit28020cbbb79cdf0a20fa21051f95acae2e1b1d48 (patch)
treed451f5994265e73e2d8fc13a996182ccc9c352f2
parent994601d32c580e433032cc17e2922e803a259b0b (diff)
(diskfs_rename_dir): If we are synchronous, update the one node our
caller doesn't have access to.
-rw-r--r--libdiskfs/dir-renamed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index cdca258c..63cb5057 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -177,8 +177,8 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname,
tnp->dn_set_ctime = 1;
}
diskfs_clear_directory (tnp, tdp, tocred);
- /* diskfs_clear_directory will sync both tnp and tdp for us
- if we are synchronous. */
+ if (diskfs_synchronous)
+ diskfs_file_update (tnp, 1);
}
else
{