]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Fix kernel BUG at fs/ext4/mballoc.c:910!
authorValerie Clement <valerie.clement@bull.net>
Fri, 15 Feb 2008 18:48:51 +0000 (13:48 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 15 Feb 2008 18:48:51 +0000 (13:48 -0500)
commita10a3f3a195913ed43ae4ce49049bb04171b9977
tree6a9f4ea7eb731a85eb1bea20bd93cd7632ccdde6
parentcf4c8e63ac70c49a7530737ed71dfc81865ef6c9
ext4: Fix kernel BUG at fs/ext4/mballoc.c:910!

With the flex_bg feature enabled, a large file creation oopses the
kernel.   The BUG_ON is:
BUG_ON(len >= EXT4_BLOCKS_PER_GROUP(sb));

As the allocation of the bitmaps and the inode table can be done
outside the block group with flex_bg, this allows to allocate up to
EXT4_BLOCKS_PER_GROUP blocks in a group.

This patch fixes the oops.

Signed-off-by: Valerie Clement <valerie.clement@bull.net>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c