GFS2: reserve more blocks for transactions
commitbf97b6734e027cc18abad420ab88f861f65d7816
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 27 Sep 2010 21:00:04 +0000 (27 16:00 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 28 Sep 2010 08:44:24 +0000 (28 09:44 +0100)
tree74892640ed482487f3bc630ad4fd20e62dec2c54
parentd0795f912318f65b800c6b619d749c3bf7c930fb
GFS2: reserve more blocks for transactions

Some of the functions in GFS2 were not reserving space in the transaction for
the resource group header and the resource groups bitblocks that get added
when you do allocation. GFS2 now makes sure to reserve space for the
resource group header and either all the bitblocks in the resource group, or
one for each block that it may allocate, whichever is smaller using the new
gfs2_rg_blocks() inline function.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c
fs/gfs2/bmap.c
fs/gfs2/file.c
fs/gfs2/ops_inode.c
fs/gfs2/quota.c
fs/gfs2/trans.h
fs/gfs2/xattr.c