]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Fall back to ignoring reservations, if there are no other blocks left
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 23 Aug 2012 12:43:40 +0000 (13:43 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 23 Aug 2012 12:43:40 +0000 (13:43 +0100)
commit3f91ce2ae13016a66fc011c0a18909ec9d76f095
tree288588440105a7e765ccdcb7a8838ed64edc689d
parent400a0f54e3970a944ef1389164948fbd9d2a9028
GFS2: Fall back to ignoring reservations, if there are no other blocks left

When we get to the stage of allocating blocks, we know that the
resource group in question must contain enough free blocks, otherwise
gfs2_inplace_reserve() would have failed. So if we are left with only
free blocks which are reserved, then we must use those. This can happen
if another node has sneeked in and use some blocks reserved on this
node, for example. Generally this will happen very rarely and only
when the resouce group is nearly full.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c