projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[firefly-linux-kernel-4.4.55.git]
/
fs
/
ext3
/
fsync.c
diff --git
a/fs/ext3/fsync.c
b/fs/ext3/fsync.c
index a588e23841d4e68323d2604e70ad92ec227923c6..d33634119e17e893eeff553781ef0307389c35f4 100644
(file)
--- a/
fs/ext3/fsync.c
+++ b/
fs/ext3/fsync.c
@@
-72,6
+72,9
@@
int ext3_sync_file(struct file * file, struct dentry *dentry, int datasync)
goto out;
}
+ if (datasync && !(inode->i_state & I_DIRTY_DATASYNC))
+ goto out;
+
/*
* The VFS has written the file data. If the inode is unaltered
* then we need not start a commit.