summaryrefslogtreecommitdiff
path: root/libdiskfs/node-update.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-03-14 22:43:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-03-14 22:43:12 +0000
commitaf881f6f26d36b065fcb5ab1c7e67f8c0a2ade89 (patch)
tree69c6b3aa7af6c667fee02e0ea8a58dffd7a2f8e7 /libdiskfs/node-update.c
parentfc4a5bdbfe203c8787ec333d0154cdcea07d6c45 (diff)
entered into RCS
Diffstat (limited to 'libdiskfs/node-update.c')
-rw-r--r--libdiskfs/node-update.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/node-update.c b/libdiskfs/node-update.c
index af1f7b3b..453dea59 100644
--- a/libdiskfs/node-update.c
+++ b/libdiskfs/node-update.c
@@ -27,5 +27,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
void diskfs_node_update (struct node *np, int wait)
{
diskfs_set_node_times (np);
- diskfs_write_disknode (np, wait);
+ if (np->dn_stat_dirty)
+ diskfs_write_disknode (np, wait);
}