]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: fix copy-paste error in calculate_rtgroup_geometry
authorDarrick J. Wong <djwong@kernel.org>
Sat, 11 Oct 2025 18:34:04 +0000 (11:34 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 13 Oct 2025 09:53:29 +0000 (11:53 +0200)
Fix this copy-paste error -- we should calculate the rt volume
concurrency either if the user gave us an explicit option, or if they
didn't but the rt volume is an SSD.

Cc: linux-xfs@vger.kernel.org # v6.13.0
Fixes: 34738ff0ee80de ("mkfs: allow sizing realtime allocation groups for concurrency")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c

index 0511f1745c47c14980df4edfa95422b5fc77db1e..bc6a28b63c24b287fdcb1f1891c6cc2937464791 100644 (file)
@@ -4506,7 +4506,7 @@ _("rgsize (%s) not a multiple of fs blk size (%d)\n"),
                cfg->rgsize = cfg->rtblocks;
                cfg->rgcount = 0;
        } else if (cli->rtvol_concurrency > 0 ||
-                  (cli->data_concurrency == -1 && rtdev_is_solidstate(xi))) {
+                  (cli->rtvol_concurrency == -1 && rtdev_is_solidstate(xi))) {
                calc_concurrency_rtgroup_geometry(cfg, cli, xi);
        } else if (is_power_of_2(cfg->rtextblocks)) {
                cfg->rgsize = calc_rgsize_extsize_power(cfg);