summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:16:10 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:29:15 -0800
commitc22ab7358ed955dcacd4807f56c8c7a66d90d84a (patch)
tree3079c0ab1572d6be806e616fd0d8883e42ae9b16 /fs/xfs/xfs_mount.c
parent46eafab0ad7f603c70e04830c7f3db7c165a32de (diff)
xfs: attach dquots to rt metadata files when starting quota
Attach dquots to the realtime metadata files when starting up quotas, since the resources used by them are charged to the root dquot. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 8b500158feca..f942efe56533 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -960,7 +960,9 @@ xfs_mountfs(
ASSERT(mp->m_qflags == 0);
mp->m_qflags = quotaflags;
- xfs_qm_mount_quotas(mp);
+ error = xfs_qm_mount_quotas(mp);
+ if (error)
+ goto out_rtunmount;
}
/*