Files
linux/fs/ext4
Jan Kara 4612fe1bc1 ext4: Fix hole punching for files with indirect blocks
commit a93cd4cf86 upstream.

Hole punching code for files with indirect blocks wrongly computed
number of blocks which need to be cleared when traversing the indirect
block tree. That could result in punching more blocks than actually
requested and thus effectively cause a data loss. For example:

fallocate -n -p 10240000 4096

will punch the range 10240000 - 12632064 instead of the range 1024000 -
10244096. Fix the calculation.

Fixes: 8bad6fc813
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-09 11:21:30 -07:00
..
2012-12-10 16:30:43 -05:00
2014-02-20 13:32:10 -05:00
2014-04-01 17:08:44 +02:00
2012-12-10 16:30:43 -05:00