summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorYongqiang Yang2011-12-14 04:13:42 +0100
committerTheodore Ts'o2011-12-14 04:13:42 +0100
commit5b5ffa49d4bbb8ca4c41c094261660264f16bd20 (patch)
tree98b3fb0f9b4afac37ce0c025ee9cca3991bee4eb /fs/ext4/extents.c
parentext4: correctly handle pages w/o buffers in ext4_discard_partial_buffers() (diff)
downloadkernel-qcow2-linux-5b5ffa49d4bbb8ca4c41c094261660264f16bd20.tar.gz
kernel-qcow2-linux-5b5ffa49d4bbb8ca4c41c094261660264f16bd20.tar.xz
kernel-qcow2-linux-5b5ffa49d4bbb8ca4c41c094261660264f16bd20.zip
ext4: remove a wrong BUG_ON in ext4_ext_convert_to_initialized
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
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 61cdb97f338c..607b1557d292 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -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