aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index b5a6a2b6f668..71bfe3a6a444 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1228,7 +1228,8 @@ int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync)
1228 mutex_unlock(&root->fs_info->trans_mutex); 1228 mutex_unlock(&root->fs_info->trans_mutex);
1229 1229
1230 root->fs_info->tree_log_batch++; 1230 root->fs_info->tree_log_batch++;
1231 filemap_fdatawait(inode->i_mapping); 1231 filemap_fdatawrite(inode->i_mapping);
1232 btrfs_wait_ordered_range(inode, 0, (u64)-1);
1232 root->fs_info->tree_log_batch++; 1233 root->fs_info->tree_log_batch++;
1233 1234
1234 /* 1235 /*