ocfs2: Grow discontig block groups in one transaction.
authorJoel Becker <joel.becker@oracle.com>
Fri, 26 Mar 2010 02:09:29 +0000 (10:09 +0800)
committerTao Ma <tao.ma@oracle.com>
Fri, 26 Mar 2010 02:09:29 +0000 (10:09 +0800)
commit8b06bc592ebc5a31e8d0b9c2ab17c6e78dde1f86
treeb05dc205b03329aa3e0c0963b76317fc91973a04
parent2b6cb576aa80611f1f6a3c88708d1e68a8d97985
ocfs2: Grow discontig block groups in one transaction.

Rather than extending the transaction every time we add an extent to a
discontiguous block group, we grab enough credits to fill the extent
list up front.  This means we can free the bits in the same transaction
if we end up not getting enough space.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/journal.h
fs/ocfs2/suballoc.c