summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-04-17 21:53:55 +0000
committerMiles Bader <miles@gnu.org>1996-04-17 21:53:55 +0000
commitaac69160e50dd175c9cb0793a7c1cd203cbe87f2 (patch)
tree5f39654b528b729777cdd3215849631586a8f026 /ext2fs
parenta7f11f0d5a78a2a86bacadb5ad1cf88bc7fd4d12 (diff)
(diskfs_write_disknode): Only sync DI if WAIT.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/inode.c4
1 files changed, 2 insertions, 2 deletions
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