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
vfs: fix bad hashing of dentries
[firefly-linux-kernel-4.4.55.git]
/
fs
/
ecryptfs
/
file.c
diff --git
a/fs/ecryptfs/file.c
b/fs/ecryptfs/file.c
index 201f0a0d6b0a2a2be8a2983d2fb63ef27dacc0d8..a7abbea2c09638ef8c190555ec466834c0c06edf 100644
(file)
--- a/
fs/ecryptfs/file.c
+++ b/
fs/ecryptfs/file.c
@@
-295,6
+295,12
@@
static int ecryptfs_release(struct inode *inode, struct file *file)
static int
ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
+ int rc;
+
+ rc = filemap_write_and_wait(file->f_mapping);
+ if (rc)
+ return rc;
+
return vfs_fsync(ecryptfs_file_to_lower(file), datasync);
}