aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/node-cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/node-cache.c b/libdiskfs/node-cache.c
index d2815883..1ff19ade 100644
--- a/libdiskfs/node-cache.c
+++ b/libdiskfs/node-cache.c
@@ -163,6 +163,10 @@ diskfs_try_dropping_softrefs (struct node *np)
hurd_ihash_locp_remove (&nodecache, np->slot);
np->slot = NULL;
+
+ /* Flush node if needed, before forgetting it */
+ diskfs_node_update (np, diskfs_synchronous);
+
diskfs_nrele_light (np);
}
pthread_rwlock_unlock (&nodecache_lock);