[GFS2] Kernel changes to support new gfs2_grow command (part 2)
authorRobert Peterson <rpeterso@redhat.com>
Thu, 10 May 2007 21:54:38 +0000 (16:54 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:22:14 +0000 (08:22 +0100)
commit6c53267f05dc6689ff662efeec426d25d2c0ab84
treeaf0cfca8828ff5047a23efb31de8ccdaf46f7744
parent7ae8fa8451dfb3879ecbc04f2760a707dc65b988
[GFS2] Kernel changes to support new gfs2_grow command (part 2)

To avoid code redundancy, I separated out the operational "guts" into
a new function called read_rindex_entry.  Then I made two functions:
the closer-to-original gfs2_ri_update (without the special condition
checks) and gfs2_ri_update_special that's designed with that condition
in mind.  (I don't like the name, but if you have a suggestion, I'm
all ears).

Oh, and there's an added benefit:  we don't need all the ugly gotos
anymore.  ;)

This patch has been tested with gfs2_fsck_hellfire (which runs for
three and a half hours, btw).

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