ext4: fix extent tree corruption caused by hole punch
authorForrest Liu <forrestl@synology.com>
Mon, 17 Dec 2012 14:55:39 +0000 (09:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:50:52 +0000 (08:50 -0800)
commitcb832988d64ff38921359cce89093abc60f299b5
treee7b0e11daba0ca0bff08624580953eb8c8d58037
parent2c3a3718da77839d08925a4705802f045faaea06
ext4: fix extent tree corruption caused by hole punch

commit c36575e663e302dbaa4d16b9c72d2c9a913a9aef upstream.

When depth of extent tree is greater than 1, logical start value of
interior node is not correctly updated in ext4_ext_rm_idx.

Signed-off-by: Forrest Liu <forrestl@synology.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Ashish Sangwan <ashishsangwan2@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c