summaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-08-02 16:28:20 +0000
committerMiles Bader <miles@gnu.org>1996-08-02 16:28:20 +0000
commit527767871fc15d813c7468134ffc1c7fff3b075e (patch)
tree46da4e5592ed21fc012e82c2d4303fd926879dc8 /ext2fs/inode.c
parent2d3478e37159ebd7ba0d73390b2af5b32a34cc32 (diff)
(diskfs_write_disknode):
If WAIT is false, still record the write for later, using record_global_poke.
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index c889aa06..7704edbd 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -517,8 +517,11 @@ void
diskfs_write_disknode (struct node *np, int wait)
{
struct ext2_inode *di = write_node (np);
- if (di && wait)
- sync_global_ptr (di, 1);
+ if (di)
+ if (wait)
+ sync_global_ptr (di, 1);
+ else
+ record_global_poke (di);
}
/* Set *ST with appropriate values to reflect the current state of the