ext3: Truncate allocated blocks if direct IO write fails to update i_size
authorJan Kara <jack@suse.cz>
Mon, 1 Mar 2010 13:02:37 +0000 (14:02 +0100)
committerJan Kara <jack@suse.cz>
Thu, 4 Mar 2010 23:20:27 +0000 (00:20 +0100)
commit7eb4969e04060dcf3fbd46af9c21b1059b853068
treeac093841df6abbe2d517af6656b149ad42536648
parentab94c39b6fa076d4f6d2903dcc54cda35d938776
ext3: Truncate allocated blocks if direct IO write fails to update i_size

We have to truncate blocks allocated to file during direct IO when we
fail to update i_size properly.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/inode.c