File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1663,10 +1663,11 @@ xfs_qm_mount_quotas(
1663
1663
uint sbf ;
1664
1664
1665
1665
/*
1666
- * If quotas on realtime volumes is not supported, we disable
1667
- * quotas immediately.
1666
+ * If quotas on realtime volumes is not supported, disable quotas
1667
+ * immediately. We only support rtquota if rtgroups are enabled to
1668
+ * avoid problems with older kernels.
1668
1669
*/
1669
- if (mp -> m_sb .sb_rextents ) {
1670
+ if (mp -> m_sb .sb_rextents && ! xfs_has_rtgroups ( mp ) ) {
1670
1671
xfs_notice (mp , "Cannot turn on quotas for realtime filesystem" );
1671
1672
mp -> m_qflags = 0 ;
1672
1673
goto write_changes ;
Original file line number Diff line number Diff line change @@ -1265,7 +1265,9 @@ xfs_growfs_rt(
1265
1265
1266
1266
/* Unsupported realtime features. */
1267
1267
error = - EOPNOTSUPP ;
1268
- if (xfs_has_rmapbt (mp ) || xfs_has_reflink (mp ) || xfs_has_quota (mp ))
1268
+ if (xfs_has_quota (mp ) && !xfs_has_rtgroups (mp ))
1269
+ goto out_unlock ;
1270
+ if (xfs_has_rmapbt (mp ) || xfs_has_reflink (mp ))
1269
1271
goto out_unlock ;
1270
1272
1271
1273
error = xfs_sb_validate_fsb_count (& mp -> m_sb , in -> newblocks );
You can’t perform that action at this time.
0 commit comments