linux/fs/ext4
Jan Kara b71fc079b5 ext4: fix fdatasync() for files with only i_size changes
Code tracking when transaction needs to be committed on fdatasync(2) forgets
to handle a situation when only inode's i_size is changed. Thus in such
situations fdatasync(2) doesn't force transaction with new i_size to disk
and that can result in wrong i_size after a crash.

Fix the issue by updating inode's i_datasync_tid whenever its size is
updated.

CC: <stable@vger.kernel.org> # >= 2.6.32
Reported-by: Kristian Nielsen <knielsen@knielsen-hq.org>
Signed-off-by: Jan Kara <jack@suse.cz>
2012-09-26 21:52:20 -04:00
..
acl.c
acl.h
balloc.c ext4: don't call ext4_error while block group is locked 2012-08-17 09:06:06 -04:00
bitmap.c ext4: don't call ext4_error while block group is locked 2012-08-17 09:06:06 -04:00
block_validity.c
dir.c
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h ext4: grow the s_group_info array as needed 2012-09-05 01:31:50 -04:00
extents.c ext4: remove unused function ext4_ext_check_cache 2012-09-26 21:09:06 -04:00
file.c The usual collection of bug fixes and optimizations. Perhaps of 2012-07-27 20:52:25 -07:00
fsync.c ext4: check return value of blkdev_issue_flush() 2012-08-17 09:58:17 -04:00
hash.c
ialloc.c ext4: check free inode count before allocating an inode 2012-09-23 23:16:03 -04:00
indirect.c
inode.c ext4: fix fdatasync() for files with only i_size changes 2012-09-26 21:52:20 -04:00
ioctl.c ext4: add online resizing support for meta_bg and 64-bit file systems 2012-09-05 01:33:50 -04:00
Kconfig
Makefile
mballoc.c ext4: use kmem_cache_zalloc instead of kmem_cache_alloc/memset 2012-09-26 20:43:37 -04:00
mballoc.h ext4: remove unused macro MB_DEFAULT_MAX_GROUPS_TO_SCAN 2012-08-17 10:00:17 -04:00
migrate.c
mmp.c ext4: Convert to new freezing mechanism 2012-07-31 09:45:48 +04:00
move_extent.c ext4: reimplement uninit extent optimization for move_extent_per_page() 2012-09-26 12:54:52 -04:00
namei.c ext4: always set i_op in ext4_mknod() 2012-09-26 21:24:57 -04:00
page-io.c
resize.c ext4: don't call update_backups() multiple times for the same bg 2012-09-26 00:08:57 -04:00
super.c ext4: fix crash when accessing /proc/mounts concurrently 2012-09-23 22:49:12 -04:00
symlink.c
truncate.h
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h