ext4: ext4_ext_convert_to_initialized bug found in extended FSX testing
authorAllison Henderson <achender@linux.vnet.ibm.com>
Mon, 16 May 2011 14:11:09 +0000 (10:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 May 2011 14:11:09 +0000 (10:11 -0400)
commit9b940f8e8c32456c8a6428fa4313a4bcca7b4fcb
tree24b784d45ad077461bdc76faf5e0fa0125eed0ec
parent0b26859027ce0005ef89520af20351360e51ad76
ext4: ext4_ext_convert_to_initialized bug found in extended FSX testing

This patch addresses bugs found while testing punch hole
with the fsx test.  The patch corrects the number of blocks
that are zeroed out while splitting an extent, and also corrects
the return value to return the number of blocks split out, instead
of the number of blocks zeroed out.

This patch has been tested in addition to the following patches:
[Ext4 punch hole v7]
[XFS Tests Punch Hole 1/1 v2] Add Punch Hole Testing to FSX

The test ran successfully for 24 hours.

Signed-off-by: Allison Henderson <achender@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c