aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcookies.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-09-05 15:48:23 +0200
committerJan Kara <jack@suse.cz>2012-09-05 16:06:03 +0200
commit9c2fc0de1a6e638fe58c354a463f544f42a90a09 (patch)
tree4b219b5d83336c2291c928a405d79c7ce0abdfee /fs/dcookies.c
parentext3: Fix fdatasync() for files with only i_size changes (diff)
downloadlinux-dev-9c2fc0de1a6e638fe58c354a463f544f42a90a09.tar.xz
linux-dev-9c2fc0de1a6e638fe58c354a463f544f42a90a09.zip
udf: Fix data corruption for files in ICB
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. CC: <stable@vger.kernel.org> # >= 2.6.24 Reported-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/dcookies.c')
0 files changed, 0 insertions, 0 deletions