summaryrefslogtreecommitdiffstats
path: root/lib/decompress.c
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2012-10-10 01:04:58 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-10-10 01:04:58 -0400
commitdee1f973ca341c266229faa5a1a5bb268bed3531 (patch)
tree1be44adf3df6f32f8d13df54a0e68f7fd8b9ac26 /lib/decompress.c
parent60d4616f3dc63371b3dc367e5e88fd4b4f037f65 (diff)
downloadlinux-dee1f973ca341c266229faa5a1a5bb268bed3531.tar.gz
linux-dee1f973ca341c266229faa5a1a5bb268bed3531.tar.bz2
linux-dee1f973ca341c266229faa5a1a5bb268bed3531.zip
ext4: race-condition protection for ext4_convert_unwritten_extents_endio
We assumed that at the time we call ext4_convert_unwritten_extents_endio() extent in question is fully inside [map.m_lblk, map->m_len] because it was already split during submission. But this may not be true due to a race between writeback vs fallocate. If extent in question is larger than requested we will split it again. Special precautions should being done if zeroout required because [map.m_lblk, map->m_len] already contains valid data. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'lib/decompress.c')
0 files changed, 0 insertions, 0 deletions