]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/gfs2/trans.h
GFS2: reserve more blocks for transactions
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 27 Sep 2010 21:00:04 +0000 (16:00 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 28 Sep 2010 08:44:24 +0000 (09:44 +0100)
commitbf97b6734e027cc18abad420ab88f861f65d7816
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