Skip to content

Commit

Permalink
ext4: remove a wrong BUG_ON in ext4_ext_convert_to_initialized
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed Dec 14, 2011
1 parent 093e6e3 commit 5b5ffa4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b5ffa4

Please sign in to comment.