summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
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