GFS2: Improve resource group error handling
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 May 2009 09:48:47 +0000 (10:48 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 May 2009 09:48:47 +0000 (10:48 +0100)
commit09010978345e8883003bf411bb99753710eb5a3a
treec3a7eaf3a775649d11ad01c2be5d3549e90f6581
parentef9e8b14a5c1d0afbaf12b4c3b271188ddfc52a4
GFS2: Improve resource group error handling

This patch improves the error handling in the case where we
discover that the summary information in the resource group
doesn't match the bitmap information while in the process of
allocating blocks. Originally this resulted in a kernel bug,
but this patch changes that so that we return -EIO and print
some messages explaining what went wrong, and how to fix it.

We also remember locally not to try and allocate from the
same rgrp again, so that a subsequent allocation in a
different rgrp should succeed.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c
fs/gfs2/dir.c
fs/gfs2/eattr.c
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h