]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
GFS2: Reserve journal space for quota change in do_grow
authorBob Peterson <rpeterso@redhat.com>
Thu, 27 Jun 2013 16:47:51 +0000 (12:47 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 27 Jun 2013 17:16:27 +0000 (18:16 +0100)
commita01aedfe21637c965a7046271fedfdd681eba646
tree68e2113fc6457a7ff467ab84f5968f863dddd864
parent6a98c333edd0ada67e96a5dbd0445808147833f7
GFS2: Reserve journal space for quota change in do_grow

If a GFS2 file system is mounted with quotas and a file is grown
in such a way that its free blocks for the allocation are represented
in a secondary bitmap, GFS2 ran out of blocks in the transaction.
That resulted in "fatal: assertion "tr->tr_num_buf <= tr->tr_blocks".
This patch reserves extra blocks for the quota change so the
transaction has enough space.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c