diff options
author | Jan Kara <jack@suse.cz> | 2011-06-03 21:58:11 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-06-25 17:29:52 +0200 |
commit | ee3e77f18010679a889b3831c2dd931238c12d09 (patch) | |
tree | 761c06de9b82cba8a8a2e1cd2174fe7afa59efd9 /Documentation | |
parent | ext3: use proper little-endian bitops (diff) | |
download | linux-ee3e77f18010679a889b3831c2dd931238c12d09.tar.xz linux-ee3e77f18010679a889b3831c2dd931238c12d09.zip |
ext3: Improve truncate error handling
New truncate calling convention allows us to handle errors from
ext3_block_truncate_page(). So reorganize the code so that
ext3_block_truncate_page() is called before we change inode size.
This also removes unnecessary block zeroing from error recovery after failed
buffered writes (zeroing isn't needed because we could have never written
non-zero data to disk). We have to be careful and keep zeroing in direct IO
write error recovery because there we might have already overwritten end of the
last file block.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions