From 527767871fc15d813c7468134ffc1c7fff3b075e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 2 Aug 1996 16:28:20 +0000 Subject: (diskfs_write_disknode): If WAIT is false, still record the write for later, using record_global_poke. --- ext2fs/inode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ext2fs') 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 -- cgit v1.2.3