]> git.baikalelectronics.ru Git - kernel.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>
Mon, 24 Sep 2012 09:47:19 +0000 (10:47 +0100)
commit371a8c787ccce813742227be716b00cf5a8cbcb6
tree0da5dec3a8b95ac287de39038bbcd903673461e4
parent764f16b6a06077b08f5b2ae9a80edfdaf6393986
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