From aac69160e50dd175c9cb0793a7c1cd203cbe87f2 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 17 Apr 1996 21:53:55 +0000 Subject: (diskfs_write_disknode): Only sync DI if WAIT. --- ext2fs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext2fs/inode.c') diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 1f08a192..d2863d22 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -445,8 +445,8 @@ void diskfs_write_disknode (struct node *np, int wait) { struct ext2_inode *di = write_node (np); - if (di) - sync_global_ptr (di, wait); + if (di && wait) + sync_global_ptr (di, 1); } /* Set *ST with appropriate values to reflect the current state of the -- cgit v1.2.3