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" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
{
if (force_nr_threads)
return force_nr_threads;
- return ctx->nr_io_threads;
+ return ctx->nr_scan_threads;
}
/*
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));
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;