From 41781d2e7b7427b8989acf56f2ebf403cce40cf3 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 8 Mar 1995 21:37:54 +0000 Subject: (CHANGE_NODE_FIELD): If DISKFS_SYNCHRONOUS, then sync node after possibly changing it. --- libdiskfs/priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; \ }) -- cgit v1.2.3