Files
linux/fs/ext3
Jan Kara 04234b3621 ext3: Fix fdatasync() for files with only i_size changes
commit 156bddd8e5 upstream.

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.

Reported-by: Kristian Nielsen <knielsen@knielsen-hq.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-14 10:00:50 -07:00
..
2011-03-31 11:26:23 -03:00
2007-10-17 08:42:47 -07:00
2010-03-05 00:20:30 +01:00
2010-09-16 20:52:58 +02:00
2010-07-23 12:50:55 +02:00
2011-03-31 11:26:23 -03:00
2011-05-26 10:01:49 -06:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00