ext4: Cache the correct extent length for uninit extents
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 30 Apr 2008 02:03:59 +0000 (22:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Apr 2008 02:03:59 +0000 (22:03 -0400)
commit161e7b7c1d24112d188df9a7b30d468a8d135b96
treebac6cea21f4a3bb96b8d16660ec9a503427c01a8
parent1a89734d4057066344356e9c7e13b6379497aebe
ext4: Cache the correct extent length for uninit extents

When we convert an uninitialized extent to an initialized extent
we need to make sure we return the number of blocks in the
extent from the file system block corresponding to logical
file block.  Otherwise we cache wrong extent details and this
results in file system corruption.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c