summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/rtsummary_repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/scrub/rtsummary_repair.c')
-rw-r--r--fs/xfs/scrub/rtsummary_repair.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/xfs/scrub/rtsummary_repair.c b/fs/xfs/scrub/rtsummary_repair.c
index c8bb6c4f15d0..d9e971c4c79f 100644
--- a/fs/xfs/scrub/rtsummary_repair.c
+++ b/fs/xfs/scrub/rtsummary_repair.c
@@ -62,12 +62,7 @@ xrep_setup_rtsummary(
return -EOPNOTSUPP;
rts->resblks += blocks;
-
- /*
- * Grab support for atomic file content exchanges before we allocate
- * any transactions or grab ILOCKs.
- */
- return xrep_tempexch_enable(sc);
+ return 0;
}
static int
@@ -111,6 +106,9 @@ xrep_rtsummary(
/* We require the rmapbt to rebuild anything. */
if (!xfs_has_rmapbt(mp))
return -EOPNOTSUPP;
+ /* We require atomic file exchange range to rebuild anything. */
+ if (!xfs_has_exchange_range(mp))
+ return -EOPNOTSUPP;
/* Walk away if we disagree on the size of the rt bitmap. */
if (rts->rbmblocks != mp->m_sb.sb_rbmblocks)