diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-03-08 21:37:54 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-03-08 21:37:54 +0000 |
commit | 41781d2e7b7427b8989acf56f2ebf403cce40cf3 (patch) | |
tree | f30a30187739b40954e4c086ce560aa5b138abb1 /libdiskfs | |
parent | 4490a05b6d723278548c8afd29d505770d545426 (diff) |
(CHANGE_NODE_FIELD): If DISKFS_SYNCHRONOUS, then sync node after
possibly changing it.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/priv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h index 899c8e30..2231bf8e 100644 --- a/libdiskfs/priv.h +++ b/libdiskfs/priv.h @@ -1,5 +1,5 @@ /* Private declarations for fileserver library - Copyright (C) 1994 Free Software Foundation + Copyright (C) 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 @@ -101,6 +101,8 @@ extern spin_lock_t _diskfs_control_lock; \ mutex_lock (&np->lock); \ (OPERATION); \ + if (diskfs_synchronous) \ + diskfs_node_update (np, 1); \ mutex_unlock (&np->lock); \ return err; \ }) |