[GFS2] Prevent infinite loop in try_rgrp_unlink()
authorBob Peterson <rpeterso@redhat.com>
Tue, 24 Jul 2007 19:09:32 +0000 (14:09 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Oct 2007 07:54:56 +0000 (08:54 +0100)
commit6760bdcd03a12d7d082794311ccbaf44bfc23b06
tree0cd1fcaac75dea97139eb54298866ea06a18b99d
parent693ddeabbb3e563f192a7ac74ec04168aa92e8d8
[GFS2] Prevent infinite loop in try_rgrp_unlink()

This is patch three of five for bug #248176.

The try_rgrp_unlink code in rgrp.c had an infinite loop.  This was
caused because the bitmap function rgblk_search can return a block
less than the "goal" block, in which case it was looping.  The fix is
to make it always march forward as needed.

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