ext4: remove a wrong BUG_ON in ext4_ext_convert_to_initialized
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 14 Dec 2011 03:13:42 +0000 (22:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 14 Dec 2011 03:13:42 +0000 (22:13 -0500)
If a file is fallocated on a hole, map->m_lblk + map->m_len may be greater
than ee_block + ee_len.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/extents.c

index 61cdb97f338cb600ed61985ba5b56c66d28cad02..607b1557d292d1b24d5a605d28565de17f36bf13 100644 (file)
@@ -2955,7 +2955,6 @@ static int ext4_ext_convert_to_initialized(handle_t *handle,
        /* Pre-conditions */
        BUG_ON(!ext4_ext_is_uninitialized(ex));
        BUG_ON(!in_range(map->m_lblk, ee_block, ee_len));
-       BUG_ON(map->m_lblk + map->m_len > ee_block + ee_len);
 
        /*
         * Attempt to transfer newly initialized blocks from the currently