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
ovl: fsync after copy-up
[firefly-linux-kernel-4.4.55.git]
/
fs
/
overlayfs
/
copy_up.c
diff --git
a/fs/overlayfs/copy_up.c
b/fs/overlayfs/copy_up.c
index ea0dd9ee138d2209cdd2017ff52070faf5116754..63a0d0ba36de11ef0a606c2d098663b750b2e282 100644
(file)
--- a/
fs/overlayfs/copy_up.c
+++ b/
fs/overlayfs/copy_up.c
@@
-139,6
+139,8
@@
static int ovl_copy_up_data(struct path *old, struct path *new, loff_t len)
len -= bytes;
}
+ if (!error)
+ error = vfs_fsync(new_file, 0);
fput(new_file);
out_fput:
fput(old_file);