Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147776
b: refs/heads/master
c: 524724e
h: refs/heads/master
v: v3
  • Loading branch information
Hisashi Hifumi authored and Chris Mason committed Jun 10, 2009
1 parent c1ce99c commit 5ef1d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 163e783e6a8b1e8bcb4c9084d438091386b589df
refs/heads/master: 524724ed1f224875a117be593540591ed050c73d
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,8 @@ int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync)
btrfs_wait_ordered_range(inode, 0, (u64)-1);
root->log_batch++;

if (datasync && !(inode->i_state & I_DIRTY_PAGES))
goto out;
/*
* ok we haven't committed the transaction yet, lets do a commit
*/
Expand Down

0 comments on commit 5ef1d72

Please sign in to comment.