mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
xfs: don't flag quota rt block usage on rtreflink filesystems
Quota space usage is allowed to exceed the size of the physical storage when reflink is enabled. Now that we have reflink for the realtime volume, apply this same logic to the rtb repair logic. Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
ca757af07f
commit
cca34a3054
|
|
@ -233,7 +233,7 @@ xrep_quota_item(
|
|||
rqi->need_quotacheck = true;
|
||||
dirty = true;
|
||||
}
|
||||
if (dq->q_rtb.count > mp->m_sb.sb_rblocks) {
|
||||
if (!xfs_has_reflink(mp) && dq->q_rtb.count > mp->m_sb.sb_rblocks) {
|
||||
dq->q_rtb.reserved -= dq->q_rtb.count;
|
||||
dq->q_rtb.reserved += mp->m_sb.sb_rblocks;
|
||||
dq->q_rtb.count = mp->m_sb.sb_rblocks;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user