From: Darrick J. Wong Date: Mon, 16 Mar 2026 18:38:47 +0000 (-0700) Subject: xfs_scrub: rename nr_io_threads X-Git-Tag: v7.0.0~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cc2c8a00083679a380328a871527c8e745f0ecd1;p=xfsprogs-dev.git xfs_scrub: rename nr_io_threads This variable really describes the number of threads that we should start up to scan metadata. Rename it to reduce confusion with the media verification code, which also initiates IO. Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/scrub/common.c b/scrub/common.c index 34d91525..95bc0c09 100644 --- a/scrub/common.c +++ b/scrub/common.c @@ -275,7 +275,7 @@ scrub_nproc( { if (force_nr_threads) return force_nr_threads; - return ctx->nr_io_threads; + return ctx->nr_scan_threads; } /* diff --git a/scrub/phase1.c b/scrub/phase1.c index 954a62b7..16607af4 100644 --- a/scrub/phase1.c +++ b/scrub/phase1.c @@ -355,7 +355,7 @@ _("Unable to find realtime device path.")); return ECANCELED; } - ctx->nr_io_threads = disk_heads(ctx->verify_disks[XFS_DEV_DATA]); + ctx->nr_scan_threads = disk_heads(ctx->verify_disks[XFS_DEV_DATA]); if (verbose) { fprintf(stdout, _("%s: using %d threads to scrub.\n"), ctx->mntpoint, scrub_nproc(ctx)); diff --git a/scrub/xfs_scrub.h b/scrub/xfs_scrub.h index a7e67c37..3009a7cd 100644 --- a/scrub/xfs_scrub.h +++ b/scrub/xfs_scrub.h @@ -70,7 +70,7 @@ struct scrub_ctx { struct xfs_fd mnt; /* Number of threads for metadata scrubbing */ - unsigned int nr_io_threads; + unsigned int nr_scan_threads; /* XFS specific geometry */ struct fs_path fsinfo;