Signed-off-by: Darrick J. Wong <djwong@kernel.org>
return -EINVAL;
/* Unsupported realtime features. */
- if (xfs_has_rmapbt(mp) || xfs_has_reflink(mp) || xfs_has_quota(mp))
+ if (!xfs_has_rtgroups(mp) && xfs_has_rmapbt(mp))
+ return -EOPNOTSUPP;
+ if (xfs_has_reflink(mp) || xfs_has_quota(mp))
return -EOPNOTSUPP;
error = xfs_sb_validate_fsb_count(&mp->m_sb, in->newblocks);
}
}
- 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,