This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch andyp-fsck_cx
in repository gfs2-utils.
commit 22757d1bb3d7f5874fb0b4136b763e9a02bb60d8
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Mon Aug 1 11:38:21 2022 +0100
fsck.gfs2: Pass fsck_cx into rewrite_rg_block()
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/fsck/rgrepair.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs2/fsck/rgrepair.c b/gfs2/fsck/rgrepair.c
index 5f228500..5f3503c4 100644
--- a/gfs2/fsck/rgrepair.c
+++ b/gfs2/fsck/rgrepair.c
@@ -846,9 +846,10 @@ static int rindex_calculate(struct lgfs2_sbd *sdp, int *num_rgs)
* rewrite_rg_block - rewrite ("fix") a buffer with rg or bitmap data
* returns: 0 if the rg was repaired, otherwise 1
*/
-static int rewrite_rg_block(struct lgfs2_sbd *sdp, struct lgfs2_rgrp_tree *rg,
+static int rewrite_rg_block(struct fsck_cx *cx, struct lgfs2_rgrp_tree *rg,
uint64_t errblock)
{
+ struct lgfs2_sbd *sdp = cx->sdp;
int x = errblock - rg->rt_addr;
const char *typedesc = x ? "GFS2_METATYPE_RB" : "GFS2_METATYPE_RG";
ssize_t ret;
@@ -1193,7 +1194,7 @@ int rindex_repair(struct fsck_cx *cx, int trust_lvl, int *ok)
if (errblock == prev_err)
break;
prev_err = errblock;
- rewrite_rg_block(sdp, rgd, errblock);
+ rewrite_rg_block(cx, rgd, errblock);
} else {
lgfs2_rgrp_relse(sdp, rgd);
break;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.