diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 01:47:54 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-09 01:47:54 +0000 |
commit | 364b5b1e1c649837d98d3a2a19d7b3b014fb1396 (patch) | |
tree | d927f0ac81a52368dc490168a1bdf0662ba6c43a /libdiskfs | |
parent | 41781d2e7b7427b8989acf56f2ebf403cce40cf3 (diff) |
(diskfs_S_dir_link): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-link.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |