]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: enable realtime rmap btree
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:42:20 +0000 (13:42 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:48 +0000 (15:55 +0200)
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_super.c

index fb08e72c6f0938cdcfb1687e3ed964758ffe05fa..18248a42f43a30a12e748db7403a31a324b034b2 100644 (file)
@@ -1282,9 +1282,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 adc8109a6a953dc9d1c10bf7a78f88b34e0f4880..461c6a02d0d5ce5105498b53fdbf782cb9a35d04 100644 (file)
@@ -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,