ext4: update extent status tree after an extent is zeroed out
commitadb2355104b2109e06ba5276485d187d023b2fd2
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 11 Mar 2013 01:13:05 +0000 (10 21:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Mar 2013 01:13:05 +0000 (10 21:13 -0400)
treebb5e3ba551ec90d772e9605f21ba99c37119ff37
parentcdee78433c138c2f2018a6884673739af2634787
ext4: update extent status tree after an extent is zeroed out

When we try to split an extent, this extent could be zeroed out and mark
as initialized.  But we don't know this in ext4_map_blocks because it
only returns a length of allocated extent.  Meanwhile we will mark this
extent as uninitialized because we only check m_flags.

This commit update extent status tree when we try to split an unwritten
extent.  We don't need to worry about the status of this extent because
we always mark it as initialized.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Dmitry Monakhov <dmonakhov@openvz.org>
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c