linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ext4: remove a wrong BUG_ON in ext4_ext_convert_to_initialized
@ 2011-12-07  5:21 Yongqiang Yang
  2011-12-07  5:21 ` [PATCH 2/2] ext4: let ext4_bio_write_page handle EOF correctly Yongqiang Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yongqiang Yang @ 2011-12-07  5:21 UTC (permalink / raw)
  To: linux-ext4; +Cc: achender, hughd, tytso, Yongqiang Yang

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>
---
 fs/ext4/extents.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 6f0300e..29bb629 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2943,7 +2943,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
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-14  3:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07  5:21 [PATCH 1/2] ext4: remove a wrong BUG_ON in ext4_ext_convert_to_initialized Yongqiang Yang
2011-12-07  5:21 ` [PATCH 2/2] ext4: let ext4_bio_write_page handle EOF correctly Yongqiang Yang
2011-12-14  3:33   ` Ted Ts'o
2011-12-09 22:41 ` [PATCH 1/2] ext4: remove a wrong BUG_ON in ext4_ext_convert_to_initialized Eric Gouriou
     [not found]   ` <CAGBYx2boc0OtAOq7BNurQkCZG0Oeyf2LLd+F-9EvwL31CNccmw@mail.gmail.com>
2011-12-13  0:01     ` Eric Gouriou
2011-12-14  3:33 ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).