ext4: remove unreachable code in ext4_can_extents_be_merged()
authorEric Sandeen <sandeen@redhat.com>
Mon, 4 Nov 2013 14:58:26 +0000 (09:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 4 Nov 2013 14:58:26 +0000 (09:58 -0500)
commitda0169b3b9a460ecbb571dad6123fe3735b148d1
treeb1d36b67b4ead658639a78da19c4d34414f3f56b
parentdcb9917ba041866686fe152850364826c4622a36
ext4: remove unreachable code in ext4_can_extents_be_merged()

Commit ec22ba8e ("ext4: disable merging of uninitialized extents")
ensured that if either extent under consideration is uninit, we
decline to merge, and immediately return.

But right after that test, we test again for an uninit
extent; we can never hit this.  So just remove the impossible
test and associated variable.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
fs/ext4/extents.c