linux/fs/ext4
Jan Kara 67a7d5f561 ext4: fix fdatasync(2) after extent manipulation operations
Currently, extent manipulation operations such as hole punch, range
zeroing, or extent shifting do not record the fact that file data has
changed and thus fdatasync(2) has a work to do. As a result if we crash
e.g. after a punch hole and fdatasync, user can still possibly see the
punched out data after journal replay. Test generic/392 fails due to
these problems.

Fix the problem by properly marking that file data has changed in these
operations.

CC: stable@vger.kernel.org
Fixes: a4bb6b64e3
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-05-29 13:24:55 -04:00
..
acl.c ext4: fix quota charging for shared xattr blocks 2017-05-24 18:24:07 -04:00
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h ext4: remove unused d_name argument from ext4_search_dir() et al. 2017-05-24 18:10:49 -04:00
extents_status.c
extents_status.h
extents.c ext4: fix fdatasync(2) after extent manipulation operations 2017-05-29 13:24:55 -04:00
file.c ext4: fix off-by-one on max nr_pages in ext4_find_unwritten_pgoff() 2017-05-24 18:02:20 -04:00
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c
indirect.c
inline.c ext4: remove unused d_name argument from ext4_search_dir() et al. 2017-05-24 18:10:49 -04:00
inode.c ext4: fix fdatasync(2) after extent manipulation operations 2017-05-29 13:24:55 -04:00
ioctl.c
Kconfig
Makefile
mballoc.c ext4: handle the rest of ext4_mb_load_buddy() ENOMEM errors 2017-05-21 22:35:23 -04:00
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c ext4: remove unused d_name argument from ext4_search_dir() et al. 2017-05-24 18:10:49 -04:00
page-io.c
readpage.c
resize.c
super.c ext4: fix quota charging for shared xattr blocks 2017-05-24 18:24:07 -04:00
symlink.c
sysfs.c
truncate.h
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: fix quota charging for shared xattr blocks 2017-05-24 18:24:07 -04:00
xattr.h