]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: enable realtime rmap btree
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:40:11 +0000 (12:40 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:47:07 +0000 (13:47 -0700)
Permit mounting filesystems with realtime rmap btrees.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_super.c

index e8816507edec6cc14f48bfde99a0c4deb85b69e6..65372429d8fb2a4468f2d5879552e0769dda7029 100644 (file)
@@ -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);
index f8d59081950a72af011d6b368b0462ef97b66e57..ba927591f3577e588f377b9ea0c8a1ab0c12a805 100644 (file)
@@ -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);