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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index ae96fdae1f7d..c02033596f02 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -832,7 +832,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
832 unsigned long last_index; 832 unsigned long last_index;
833 int will_write; 833 int will_write;
834 834
835 will_write = ((file->f_flags & O_SYNC) || IS_SYNC(inode) || 835 will_write = ((file->f_flags & O_DSYNC) || IS_SYNC(inode) ||
836 (file->f_flags & O_DIRECT)); 836 (file->f_flags & O_DIRECT));
837 837
838 nrptrs = min((count + PAGE_CACHE_SIZE - 1) / PAGE_CACHE_SIZE, 838 nrptrs = min((count + PAGE_CACHE_SIZE - 1) / PAGE_CACHE_SIZE,
@@ -999,7 +999,7 @@ out_nolock:
999 if (err) 999 if (err)
1000 num_written = err; 1000 num_written = err;
1001 1001
1002 if ((file->f_flags & O_SYNC) || IS_SYNC(inode)) { 1002 if ((file->f_flags & O_DSYNC) || IS_SYNC(inode)) {
1003 trans = btrfs_start_transaction(root, 1); 1003 trans = btrfs_start_transaction(root, 1);
1004 ret = btrfs_log_dentry_safe(trans, root, 1004 ret = btrfs_log_dentry_safe(trans, root,
1005 file->f_dentry); 1005 file->f_dentry);