aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-09-05 15:48:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-14 10:00:50 -0700
commit31147bc619c3379e335726e071ea012784ad9877 (patch)
tree537e852125f967e865f5f9277acb469c96bc79d0 /fs/ext3
parent778105ad42f80ed3408ede5c2f98078bc22db06d (diff)
downloadkernel_samsung_smdk4412-31147bc619c3379e335726e071ea012784ad9877.zip
kernel_samsung_smdk4412-31147bc619c3379e335726e071ea012784ad9877.tar.gz
kernel_samsung_smdk4412-31147bc619c3379e335726e071ea012784ad9877.tar.bz2
udf: Fix data corruption for files in ICB
commit 9c2fc0de1a6e638fe58c354a463f544f42a90a09 upstream. When a file is stored in ICB (inode), we overwrite part of the file, and the page containing file's data is not in page cache, we end up corrupting file's data by overwriting them with zeros. The problem is we use simple_write_begin() which simply zeroes parts of the page which are not written to. The problem has been introduced by be021ee4 (udf: convert to new aops). Fix the problem by providing a ->write_begin function which makes the page properly uptodate. Reported-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext3')
0 files changed, 0 insertions, 0 deletions