[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)
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

diff --cc fs/gfs2/rgrp.c
Simple merge