aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-11-04 04:19:42 +0000
committerDarrick J. Wong <[email protected]>2024-11-05 21:38:46 +0000
commitedc038f7f3860911d4fc2574e63cedfe56603f1b (patch)
tree300b0ce8cbfce9cce7d587bc5d08a01e9d907170 /fs/xfs/xfs_rtalloc.c
parentxfs: reserve quota for realtime files correctly (diff)
downloadkernel-edc038f7f3860911d4fc2574e63cedfe56603f1b.tar.gz
kernel-edc038f7f3860911d4fc2574e63cedfe56603f1b.zip
xfs: enable realtime quota again
Enable quotas for the realtime device. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
-rw-r--r--fs/xfs/xfs_rtalloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c
index 7ecea7623a15..0cb534d71119 100644
--- a/fs/xfs/xfs_rtalloc.c
+++ b/fs/xfs/xfs_rtalloc.c
@@ -1265,7 +1265,9 @@ xfs_growfs_rt(
/* Unsupported realtime features. */
error = -EOPNOTSUPP;
- if (xfs_has_rmapbt(mp) || xfs_has_reflink(mp) || xfs_has_quota(mp))
+ if (xfs_has_quota(mp) && !xfs_has_rtgroups(mp))
+ goto out_unlock;
+ if (xfs_has_rmapbt(mp) || xfs_has_reflink(mp))
goto out_unlock;
error = xfs_sb_validate_fsb_count(&mp->m_sb, in->newblocks);