[GFS2] Readpages support

This adds readpages support (and also corrects a small bug in
the readpage error path at the same time). Hopefully this will
improve performance by allowing GFS to submit larger lumps of
I/O at a time.

In order to simplify the setting of BH_Boundary, it currently gets
set when we hit the end of a indirect pointer block. There is
always a boundary at this point with the current allocation code.
It doesn't get all the boundaries right though, so there is still
room for improvement in this.

See comments in fs/gfs2/ops_address.c for further information about
readpages with GFS2.

Signed-off-by: Steven Whitehouse
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 4ae5596..15c326c 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -956,8 +956,7 @@
 	   search in the first part of our first-searched bit block.  */
 	for (x = 0; x <= length; x++) {
 		if (bi->bi_clone)
-			blk = gfs2_bitfit(rgd,
-					  bi->bi_clone + bi->bi_offset,
+			blk = gfs2_bitfit(rgd, bi->bi_clone + bi->bi_offset,
 					  bi->bi_len, goal, old_state);
 		else
 			blk = gfs2_bitfit(rgd,
@@ -976,12 +975,10 @@
 		blk = 0;
 
 	gfs2_trans_add_bh(rgd->rd_gl, bi->bi_bh, 1);
-	gfs2_setbit(rgd,
-		    bi->bi_bh->b_data + bi->bi_offset,
+	gfs2_setbit(rgd, bi->bi_bh->b_data + bi->bi_offset,
 		    bi->bi_len, blk, new_state);
 	if (bi->bi_clone)
-		gfs2_setbit(rgd,
-			    bi->bi_clone + bi->bi_offset,
+		gfs2_setbit(rgd, bi->bi_clone + bi->bi_offset,
 			    bi->bi_len, blk, new_state);
 
 	return bi->bi_start * GFS2_NBBY + blk;
@@ -1064,8 +1061,7 @@
 	else
 		goal = rgd->rd_last_alloc_data;
 
-	blk = rgblk_search(rgd, goal,
-			   GFS2_BLKST_FREE, GFS2_BLKST_USED);
+	blk = rgblk_search(rgd, goal, GFS2_BLKST_FREE, GFS2_BLKST_USED);
 	rgd->rd_last_alloc_data = blk;
 
 	block = rgd->rd_ri.ri_data0 + blk;
@@ -1109,8 +1105,7 @@
 	else
 		goal = rgd->rd_last_alloc_meta;
 
-	blk = rgblk_search(rgd, goal,
-			   GFS2_BLKST_FREE, GFS2_BLKST_USED);
+	blk = rgblk_search(rgd, goal, GFS2_BLKST_FREE, GFS2_BLKST_USED);
 	rgd->rd_last_alloc_meta = blk;
 
 	block = rgd->rd_ri.ri_data0 + blk;