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 ext4: support GETFSMAP ioctls 2017-04-30 00:36:53 -04:00
fsmap.h ext4: support GETFSMAP ioctls 2017-04-30 00:36:53 -04:00
fsync.c
hash.c
ialloc.c ext4: inherit encryption xattr before other xattrs 2017-05-02 00:49:54 -04:00
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 Add GETFSMAP support; some performance improvements for very large 2017-05-08 11:30:05 -07:00
Kconfig
Makefile ext4: support GETFSMAP ioctls 2017-04-30 00:36:53 -04:00
mballoc.c ext4: handle the rest of ext4_mb_load_buddy() ENOMEM errors 2017-05-21 22:35:23 -04:00
mballoc.h ext4: support GETFSMAP ioctls 2017-04-30 00:36:53 -04:00
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 ext4: replace BUG_ON with WARN_ONCE in ext4_end_bio() 2017-04-30 20:08:05 -04:00
readpage.c
resize.c
super.c ext4: fix quota charging for shared xattr blocks 2017-05-24 18:24:07 -04:00
symlink.c ext4: Add statx support 2017-04-03 01:05:58 -04:00
sysfs.c ext4: constify static data that is never modified 2017-04-29 23:47:50 -04:00
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