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 69428814ec5ce9abf7d07088f4b1800d62371ec8 Author: Andrew Price anprice@redhat.com AuthorDate: Mon Aug 1 11:35:20 2022 +0100
fsck.gfs2: Pass fsck_cx into check_block_status()
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/fsck/pass5.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs2/fsck/pass5.c b/gfs2/fsck/pass5.c index 1d19bac7..5de3d57c 100644 --- a/gfs2/fsck/pass5.c +++ b/gfs2/fsck/pass5.c @@ -14,11 +14,12 @@
#define GFS1_BLKST_USEDMETA 4
-static int check_block_status(struct lgfs2_sbd *sdp, struct bmap *bl, +static int check_block_status(struct fsck_cx *cx, struct bmap *bl, char *buffer, unsigned int buflen, uint64_t *rg_block, uint64_t rg_data, uint32_t *count) { + struct lgfs2_sbd *sdp = cx->sdp; unsigned char *byte, *end; unsigned int bit; unsigned char rg_status; @@ -126,7 +127,7 @@ static void update_rgrp(struct fsck_cx *cx, struct lgfs2_rgrp_tree *rgp, bits = &rgp->bits[i];
/* update the bitmaps */ - if (check_block_status(sdp, bl, bits->bi_data + bits->bi_offset, + if (check_block_status(cx, bl, bits->bi_data + bits->bi_offset, bits->bi_len, &rg_block, rgp->rt_data0, count)) return; if (skip_this_pass || fsck_abort) /* if asked to skip the rest */