]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_scrub: remove scrub_metadata_file
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:06 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:07 +0000 (17:01 -0700)
Collapse this function with scrub_meta_type.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/phase2.c
scrub/scrub.c
scrub/scrub.h

index 4d4552d8477b5bce8673c55192469199d29cef13..4d90291ed1477616f327d19b5e385497094352f9 100644 (file)
@@ -131,7 +131,7 @@ scan_fs_metadata(
                goto out;
 
        scrub_item_init_fs(&sri);
-       ret = scrub_fs_metadata(ctx, type, &sri);
+       ret = scrub_meta_type(ctx, type, &sri);
        if (ret) {
                sctl->aborted = true;
                goto out;
index ca3eea42eceda39b41ad1d9b3f98168c934c368e..5c14ed2092eba725f19c57b4f9aefd41b52026eb 100644 (file)
@@ -317,18 +317,6 @@ scrub_ag_metadata(
        return scrub_group(ctx, XFROG_SCRUB_GROUP_PERAG, sri);
 }
 
-/* Scrub whole-filesystem metadata. */
-int
-scrub_fs_metadata(
-       struct scrub_ctx                *ctx,
-       unsigned int                    type,
-       struct scrub_item               *sri)
-{
-       ASSERT(xfrog_scrubbers[type].group == XFROG_SCRUB_GROUP_FS);
-
-       return scrub_meta_type(ctx, type, sri);
-}
-
 /* Scrub all FS summary metadata. */
 int
 scrub_summary_metadata(
index b2e91efac704dbb5004780d2c3eeb761e490cfdb..874e1fe131917e9e4e85cb89eb42649f99d4064c 100644 (file)
@@ -82,8 +82,6 @@ void scrub_item_dump(struct scrub_item *sri, unsigned int group_mask,
 void scrub_report_preen_triggers(struct scrub_ctx *ctx);
 int scrub_ag_headers(struct scrub_ctx *ctx, struct scrub_item *sri);
 int scrub_ag_metadata(struct scrub_ctx *ctx, struct scrub_item *sri);
-int scrub_fs_metadata(struct scrub_ctx *ctx, unsigned int scrub_type,
-               struct scrub_item *sri);
 int scrub_iscan_metadata(struct scrub_ctx *ctx, struct scrub_item *sri);
 int scrub_summary_metadata(struct scrub_ctx *ctx, struct scrub_item *sri);
 int scrub_meta_type(struct scrub_ctx *ctx, unsigned int type,