From 75e1175006e01e50bdb7243e031c3d0eb987cc08 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 28 Oct 1999 06:27:10 +0000 Subject: 1999-10-28 Roland McGrath * node-nput.c (diskfs_nput): Call diskfs_set_node_times before diskfs_lost_hardrefs. This should address the late mtime update bug reported and investigated by Mark Kettenis. --- libdiskfs/node-nput.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libdiskfs/node-nput.c') diff --git a/libdiskfs/node-nput.c b/libdiskfs/node-nput.c index 425b2216..2f4a7db4 100644 --- a/libdiskfs/node-nput.c +++ b/libdiskfs/node-nput.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1999 Free Software Foundation, Inc. Written by Thomas Bushnell, BSG. @@ -37,6 +37,12 @@ diskfs_nput (struct node *np) else if (np->references == 0 && !tried_drop_softrefs) { spin_unlock (&diskfs_node_refcnt_lock); + + /* This is our cue that something akin to "last process closes file" + in the POSIX.1 sense happened, so make sure any pending node time + updates now happen in a timely fashion. */ + diskfs_set_node_times (np); + diskfs_lost_hardrefs (np); if (!np->dn_stat.st_nlink) { -- cgit v1.2.3