android_kernel_oneplus_msm8998/fs/overlayfs
Miklos Szeredi e3d312c435 ovl: fsync after copy-up
commit 641089c1549d8d3df0b047b5de7e9a111362cdce upstream.

Make sure the copied up file hits the disk before renaming to the final
destination.  If this is not done then the copy-up may corrupt the data in
the file in case of a crash.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-10 16:36:34 +01:00
..
copy_up.c ovl: fsync after copy-up 2016-11-10 16:36:34 +01:00
dir.c ovl: Fix info leak in ovl_lookup_temp() 2016-10-28 03:01:30 -04:00
inode.c ovl: listxattr: use strnlen() 2016-09-15 08:27:52 +02:00
Kconfig ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
Makefile ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
overlayfs.h ovl: don't copy up opaqueness 2016-09-15 08:27:52 +02:00
readdir.c ovl: check dentry positiveness in ovl_cleanup_whiteouts() 2016-02-25 12:01:24 -08:00
super.c ovl: fix workdir creation 2016-09-15 08:27:52 +02:00