]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: disable rt quotas for zoned file systems
authorChristoph Hellwig <hch@lst.de>
Tue, 22 Oct 2024 12:16:44 +0000 (14:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:17:09 +0000 (08:17 -0700)
They'll need a little more work.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/xfs_qm.c

index e1ba5af6250f0bc2aace20a5983897fa38146918..417439b587854a1fd6deebbe5e5fa0314a3e98e9 100644 (file)
@@ -1711,7 +1711,8 @@ xfs_qm_mount_quotas(
         * immediately.  We only support rtquota if rtgroups are enabled to
         * avoid problems with older kernels.
         */
-       if (mp->m_sb.sb_rextents && !xfs_has_rtgroups(mp)) {
+       if (mp->m_sb.sb_rextents &&
+           (!xfs_has_rtgroups(mp) || xfs_has_zoned(mp))) {
                xfs_notice(mp, "Cannot turn on quotas for realtime filesystem");
                mp->m_qflags = 0;
                goto write_changes;