summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-renamed.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/dir-renamed.c')
-rw-r--r--libdiskfs/dir-renamed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index 581376de..edde2874 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -140,6 +140,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname,
goto out;
}
+ diskfs_purge_cache (fnp, tdp);
err = diskfs_dirrewrite (fnp, tdp, tmpds);
if (diskfs_synchronous)
diskfs_file_update (fnp, 1);
@@ -169,6 +170,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname,
if (tnp)
{
+ diskfs_purge_cache (tdp, fnp);
err = diskfs_dirrewrite (tdp, fnp, ds);
ds = 0;
if (!err)