summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ufs/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index e4b26f81..88f89a37 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -479,7 +479,8 @@ void
diskfs_write_disknode (struct node *np, int wait)
{
write_node (np);
- sync_dinode (np->dn->number, wait);
+ if (wait)
+ sync_dinode (np->dn->number, 1);
}
/* Implement the diskfs_set_statfs callback from the diskfs library;