summaryrefslogtreecommitdiff
path: root/libdiskfs/io-prenotify.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-09 02:04:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-09 02:04:31 +0000
commitf7bbd4fb27fbeaaa8acee1f256f311e1b29401ae (patch)
treead460632451d28bd179d901e542f2861b3ae72fe /libdiskfs/io-prenotify.c
parent6a063c5d39cf8635fba934d5057eb5e037475be1 (diff)
(diskfs_S_io_prenotify): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs/io-prenotify.c')
-rw-r--r--libdiskfs/io-prenotify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/io-prenotify.c b/libdiskfs/io-prenotify.c
index b239c02e..b114a6a2 100644
--- a/libdiskfs/io-prenotify.c
+++ b/libdiskfs/io-prenotify.c
@@ -1,5 +1,5 @@
/*
- 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
@@ -62,6 +62,8 @@ diskfs_S_io_prenotify (struct protid *cred,
}
err = diskfs_grow (np, end, cred);
+ if (diskfs_synchronous)
+ diskfs_node_update (np, 1);
out:
mutex_unlock (&np->lock);
return err;