From 46d18bdebbc82cbc6f8bad3a92d09c28c0596a13 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 23 Sep 2024 13:42:20 -0700 Subject: [PATCH] xfs: enable realtime rmap btree Permit mounting filesystems with realtime rmap btrees. Signed-off-by: Darrick J. Wong --- fs/xfs/xfs_rtalloc.c | 4 ++-- fs/xfs/xfs_super.c | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 61a734c3b648..f59c77955f8a 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -1284,9 +1284,9 @@ xfs_growfs_rt( /* Unsupported realtime features. */ error = -EOPNOTSUPP; - if (xfs_has_quota(mp) && !xfs_has_rtgroups(mp)) + if ((xfs_has_rmapbt(mp) || xfs_has_quota(mp)) && !xfs_has_rtgroups(mp)) goto out_unlock; - if (xfs_has_rmapbt(mp) || xfs_has_reflink(mp)) + if (xfs_has_reflink(mp)) goto out_unlock; error = xfs_sb_validate_fsb_count(&mp->m_sb, in->newblocks); diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index adc8109a6a95..461c6a02d0d5 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1769,12 +1769,6 @@ xfs_fs_fill_super( } } - if (xfs_has_rmapbt(mp) && mp->m_sb.sb_rblocks) { - xfs_alert(mp, - "reverse mapping btree not compatible with realtime device!"); - error = -EINVAL; - goto out_filestream_unmount; - } if (xfs_has_exchange_range(mp)) xfs_warn(mp, -- 2.50.1