ext4: don't assume extents can't cross block groups when truncating
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Aug 2008 01:59:19 +0000 (21:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Aug 2008 01:59:19 +0000 (21:59 -0400)
commit34071da71a665d8c81e3b3467c9a2e7c56386fec
treebf737db477d20e4f748eccfcf13a28e428a7e04b
parentbc965ab3f2b4b7bb898b11d61d25295c2053b8ac
ext4: don't assume extents can't cross block groups when truncating

With the FLEX_BG layout, there is no reason why extents can't cross
block groups, so make the truncate code reserve enough credits so we
don't BUG if we come across such an extent.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c