]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Remove unneeded BUG_ON() in ext4_move_extents()
authorAkira Fujita <a-fujita@rs.jp.nec.com>
Sun, 6 Sep 2009 02:11:55 +0000 (22:11 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:23 +0000 (08:06 -0800)
commit4062fc4957707493ff8d53d21c058838a8425f2a
tree6a5861ab9cfb5b52a46f9200dec73d858096599a
parentad6030eecf171af161ad4c215c8d3f967b5ddfc5
ext4: Remove unneeded BUG_ON() in ext4_move_extents()

(cherry picked from commit daea696dbac0e33af3cfe304efbfb8d74e0effe6)

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 <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/move_extent.c