mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
xfs: call xfs_dquot_set_prealloc_limits if we installed default rtb limits
Now that we have quotas for the realtime volume, we also have
precomputed watermark limits for the realtime block counts. These
precomputations should be done any time we change the rtb limits, which
means that xfs_qm_adjust_dqlimits needs to ensure that if we installed
a default rtb limit.
Cc: stable@vger.kernel.org # v6.13
Fixes: 5dd70852b0 ("xfs: create quota preallocation watermarks for realtime quota")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
2f3c2a6f96
commit
065f3ce593
|
|
@ -139,10 +139,14 @@ xfs_qm_adjust_dqlimits(
|
|||
dq->q_ino.softlimit = defq->ino.soft;
|
||||
if (!dq->q_ino.hardlimit)
|
||||
dq->q_ino.hardlimit = defq->ino.hard;
|
||||
if (!dq->q_rtb.softlimit)
|
||||
if (!dq->q_rtb.softlimit) {
|
||||
dq->q_rtb.softlimit = defq->rtb.soft;
|
||||
if (!dq->q_rtb.hardlimit)
|
||||
prealloc = 1;
|
||||
}
|
||||
if (!dq->q_rtb.hardlimit) {
|
||||
dq->q_rtb.hardlimit = defq->rtb.hard;
|
||||
prealloc = 1;
|
||||
}
|
||||
|
||||
if (prealloc)
|
||||
xfs_dquot_set_prealloc_limits(dq);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user