diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-03-19 20:26:10 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-03-19 20:26:10 +0000 |
commit | f2b039a107718d28a5ba187d33fa18e2aed1e532 (patch) | |
tree | c1565f64cc8408c56af78c96eaea4d016f88039d /libdiskfs | |
parent | fb40b305a6572e000db58369f7df4c49a89afb8d (diff) |
(diskfs_rename_dir): Call diskfs_purge_cache before calls to
diskfs_dirrewrite.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-renamed.c | 2 |
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) |