From: Andrew Price Date: Tue, 13 Apr 2021 14:05:30 +0100 Subject: [Cluster-devel] [PATCH 3/5] fsck.gfs2: Rename ri_update to read_rgrps In-Reply-To: <20210413130532.1277163-1-anprice@redhat.com> References: <20210413130532.1277163-1-anprice@redhat.com> Message-ID: <20210413130532.1277163-4-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Give it a name that matches what it does. Signed-off-by: Andrew Price --- gfs2/fsck/initialize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfs2/fsck/initialize.c b/gfs2/fsck/initialize.c index 5be561f8..4c266d9a 100644 --- a/gfs2/fsck/initialize.c +++ b/gfs2/fsck/initialize.c @@ -675,7 +675,7 @@ static unsigned gfs2_rgrp_reada(struct gfs2_sbd *sdp, unsigned cur_window, } /** - * ri_update - attach rgrps to the super block + * read_rgrps - attach rgrps to the super block * @sdp: incore superblock data * @expected: number of resource groups expected (rindex entries) * @@ -684,7 +684,7 @@ static unsigned gfs2_rgrp_reada(struct gfs2_sbd *sdp, unsigned cur_window, * * Returns: 0 on success, -1 on failure. */ -static int ri_update(struct gfs2_sbd *sdp, uint64_t expected) +static int read_rgrps(struct gfs2_sbd *sdp, uint64_t expected) { struct rgrp_tree *rgd; struct gfs2_rindex *ri; @@ -754,7 +754,7 @@ static int fetch_rgrps_level(struct gfs2_sbd *sdp, enum rgindex_trust_level lvl, if (rindex_read(sdp, count, ok) != 0) goto fail; - ret = ri_update(sdp, *count); + ret = read_rgrps(sdp, *count); if (ret != 0) goto fail; -- 2.30.2