File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1663,10 +1663,11 @@ xfs_qm_mount_quotas(
16631663 uint sbf ;
16641664
16651665 /*
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.
16681669 */
1669- if (mp -> m_sb .sb_rextents ) {
1670+ if (mp -> m_sb .sb_rextents && ! xfs_has_rtgroups ( mp ) ) {
16701671 xfs_notice (mp , "Cannot turn on quotas for realtime filesystem" );
16711672 mp -> m_qflags = 0 ;
16721673 goto write_changes ;
Original file line number Diff line number Diff line change @@ -1265,7 +1265,9 @@ xfs_growfs_rt(
12651265
12661266 /* Unsupported realtime features. */
12671267 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 ))
12691271 goto out_unlock ;
12701272
12711273 error = xfs_sb_validate_fsb_count (& mp -> m_sb , in -> newblocks );
You can’t perform that action at this time.
0 commit comments