summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-19 20:06:11 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-19 20:06:11 +0000
commitf8213c7838a95cf2d33886fe694164fde6c9b0e6 (patch)
tree2f71b5f3fd0009a6642de4c63b22f34e17c7a903 /libdiskfs
parenta22ca7c510c1a1d238bf783914e7719c4bfd7c3e (diff)
(diskfs_clear_directory): Call diskfs_purge_cache_node before
diskfs_dirremove.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-clear.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/dir-clear.c b/libdiskfs/dir-clear.c
index c1033a03..7088afb3 100644
--- a/libdiskfs/dir-clear.c
+++ b/libdiskfs/dir-clear.c
@@ -35,6 +35,7 @@ diskfs_clear_directory (struct node *dp,
if (!err)
{
assert (np == dp);
+ diskfs_purge_cache_node (dp, np);
err = diskfs_dirremove (dp, ds);
diskfs_nrele (np);
}
@@ -53,6 +54,7 @@ diskfs_clear_directory (struct node *dp,
if (!err)
{
assert (np == pdp);
+ diskfs_purge_cache_node (dp, np);
err = diskfs_dirremove (dp, ds);
}
else