diff mbox series

[1/4] xfs_repair: fix exchrange upgrade

Message ID 172783103393.4038674.368177237231285654.stgit@frogsfrogsfrogs (mailing list archive)
State Not Applicable, archived
Headers show
Series [1/4] xfs_repair: fix exchrange upgrade | expand

Commit Message

Darrick J. Wong Oct. 2, 2024, 1:25 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Set the correct superblock field for the exchange-range feature upgrade.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 repair/phase2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig Oct. 2, 2024, 5:57 a.m. UTC | #1
On Tue, Oct 01, 2024 at 06:25:47PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> Set the correct superblock field for the exchange-range feature upgrade.

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/repair/phase2.c b/repair/phase2.c
index 3418da523..e50cd3f8c 100644
--- a/repair/phase2.c
+++ b/repair/phase2.c
@@ -205,7 +205,7 @@  set_exchrange(
 	}
 
 	printf(_("Adding file exchange-range support to filesystem.\n"));
-	new_sb->sb_features_ro_compat |= XFS_SB_FEAT_INCOMPAT_EXCHRANGE;
+	new_sb->sb_features_incompat |= XFS_SB_FEAT_INCOMPAT_EXCHRANGE;
 	new_sb->sb_features_incompat |= XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR;
 	return true;
 }