diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-22 19:48:29 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-24 02:55:19 +0300 |
commit | 6d335233fe6952189c949d65ab16d92afb0b8fb4 (patch) | |
tree | 6399ccdfede16296a598c2ba0335a9d4a84a05e2 /fs/xfs/scrub/attr_repair.c | |
parent | b44bfc06958f49ccb611632a4fb7c7df4fdcbc06 (diff) | |
download | linux-6d335233fe6952189c949d65ab16d92afb0b8fb4.tar.xz |
xfs: exchange-range for repairs is no longer dynamic
The atomic file exchange-range functionality is now a permanent
filesystem feature instead of a dynamic log-incompat feature. It cannot
be turned on at runtime, so we no longer need the XCHK_FSGATES flags and
whatnot that supported it. Remove the flag and the enable function, and
move the xfs_has_exchange_range checks to the start of the repair
functions.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/attr_repair.c')
-rw-r--r-- | fs/xfs/scrub/attr_repair.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/scrub/attr_repair.c b/fs/xfs/scrub/attr_repair.c index e059813b92b7..c7eb94069caf 100644 --- a/fs/xfs/scrub/attr_repair.c +++ b/fs/xfs/scrub/attr_repair.c @@ -1630,6 +1630,9 @@ xrep_xattr( /* The rmapbt is required to reap the old attr fork. */ if (!xfs_has_rmapbt(sc->mp)) return -EOPNOTSUPP; + /* We require atomic file exchange range to rebuild anything. */ + if (!xfs_has_exchange_range(sc->mp)) + return -EOPNOTSUPP; error = xrep_xattr_setup_scan(sc, &rx); if (error) |