diff options
| -rw-r--r-- | fs/overlayfs/copy_up.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index aeb60f791418..36795eed40b0 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c | |||
| @@ -178,6 +178,8 @@ static int ovl_copy_up_data(struct path *old, struct path *new, loff_t len) | |||
| 178 | len -= bytes; | 178 | len -= bytes; |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | if (!error) | ||
| 182 | error = vfs_fsync(new_file, 0); | ||
| 181 | fput(new_file); | 183 | fput(new_file); |
| 182 | out_fput: | 184 | out_fput: |
| 183 | fput(old_file); | 185 | fput(old_file); |
