]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5eba8596e7e4502971195628af76db792fd20dc6
tree74892640ed482487f3bc630ad4fd20e62dec2c54
parentef1173fb06e10372805f83afe2d7abd54c697759
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