From 364b5b1e1c649837d98d3a2a19d7b3b014fb1396 Mon Sep 17 00:00:00 2001
From: "Michael I. Bushnell" <mib@gnu.org>
Date: Thu, 9 Mar 1995 01:47:54 +0000
Subject: (diskfs_S_dir_link): Implement diskfs_synchronous.

---
 libdiskfs/dir-link.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'libdiskfs/dir-link.c')

diff --git a/libdiskfs/dir-link.c b/libdiskfs/dir-link.c
index 1bc4e643..0b6f96ae 100644
--- a/libdiskfs/dir-link.c
+++ b/libdiskfs/dir-link.c
@@ -1,5 +1,5 @@
 /* libdiskfs implementation of fs.defs: dir_link
-   Copyright (C) 1992, 1993, 1994 Free Software Foundation
+   Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -81,8 +81,13 @@ diskfs_S_dir_link (struct protid *filecred,
     {
       np->dn_stat.st_nlink--;
       np->dn_set_ctime = 1;
+      if (diskfs_synchronous)
+	diskfs_node_update (np, 1);
     }
 
+  if (diskfs_synchronou)
+    diskfs_node_update (dnp, 1);
+
  out:
   mutex_unlock (&dnp->lock);
   mutex_unlock (&np->lock);
-- 
cgit v1.2.3