diff options
author | 2024-11-20 16:21:11 -0800 | |
---|---|---|
committer | 2024-12-23 13:06:15 -0800 | |
commit | cca34a305446f0eeea7c6c76bbb01ecf58be9cbc (patch) | |
tree | c404715f95392cd61051bffd9c4b5f3add6faaa3 | |
parent | xfs: scrub the metadir path of rt refcount btree files (diff) | |
download | wireguard-linux-cca34a305446f0eeea7c6c76bbb01ecf58be9cbc.tar.xz wireguard-linux-cca34a305446f0eeea7c6c76bbb01ecf58be9cbc.zip |
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>
-rw-r--r-- | fs/xfs/scrub/quota_repair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/quota_repair.c b/fs/xfs/scrub/quota_repair.c index cd51f10f2920..8f4c8d41f308 100644 --- a/fs/xfs/scrub/quota_repair.c +++ b/fs/xfs/scrub/quota_repair.c @@ -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; |