]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09060b09b874b0c7c00bc773a9231b2583f2024e
treebac6cea21f4a3bb96b8d16660ec9a503427c01a8
parent6c87ffb70a12eabba3707f944372a9c4090a0842
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