From: Akira Fujita Date: Sun, 6 Sep 2009 02:11:55 +0000 (-0400) Subject: ext4: Remove unneeded BUG_ON() in ext4_move_extents() X-Git-Tag: v2.6.32-rc1~633^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daea696dbac0e33af3cfe304efbfb8d74e0effe6;p=pandora-kernel.git ext4: Remove unneeded BUG_ON() in ext4_move_extents() The ext4_move_extents() functions checks with BUG_ON() whether the exchanged blocks count accords with request blocks count. But, if the target range (orig_start + len) includes sparse block(s), 'moved_len' (exchanged blocks count) does not agree with 'len' (request blocks count), since sparse block is not counted in 'moved_len'. This causes us to hit the BUG_ON(), even though the function succeeded. Signed-off-by: Akira Fujita Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed