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 ff58c0f8eae22a88c1b53e0b0e451e495fd4ede8 Author: Andrew Price anprice@redhat.com AuthorDate: Mon Aug 1 10:52:47 2022 +0100
fsck.gfs2: Pass fsck_cx into fill_super_block()
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/fsck/initialize.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs2/fsck/initialize.c b/gfs2/fsck/initialize.c index 2ef5ed31..be752d69 100644 --- a/gfs2/fsck/initialize.c +++ b/gfs2/fsck/initialize.c @@ -1333,8 +1333,9 @@ static int sb_repair(struct lgfs2_sbd *sdp) * * Returns: 0 on success, -1 on failure */ -static int fill_super_block(struct lgfs2_sbd *sdp) +static int fill_super_block(struct fsck_cx *cx) { + struct lgfs2_sbd *sdp = cx->sdp; int ret;
sync(); @@ -1596,7 +1597,7 @@ int initialize(struct fsck_cx *cx, int *all_clean) }
/* read in sb from disk */ - err = fill_super_block(sdp); + err = fill_super_block(cx); if (err != FSCK_OK) return err;