From: Darrick J. Wong Date: Tue, 15 Oct 2024 19:40:11 +0000 (-0700) Subject: xfs: enable realtime rmap btree X-Git-Tag: xfs-zoned-2024-11-18~126 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6dce2f071232433e4a00587acf6770145796cba8;p=users%2Fhch%2Fxfs.git xfs: enable realtime rmap btree Permit mounting filesystems with realtime rmap btrees. Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index e8816507edec..65372429d8fb 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 f8d59081950a..ba927591f357 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1767,12 +1767,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_experimental(mp, XFS_EXPERIMENTAL_EXCHRANGE);