mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 21:37:25 +02:00
xfs: allow dquot rt block count to exceed rt blocks on reflink fs
Update the quota scrubber to allow dquots where the realtime block count exceeds the block count of the rt volume if reflink is enabled. Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
30f47950dc
commit
48bc170f2c
|
|
@ -212,12 +212,18 @@ xchk_quota_item(
|
|||
if (mp->m_sb.sb_dblocks < dq->q_blk.count)
|
||||
xchk_fblock_set_warning(sc, XFS_DATA_FORK,
|
||||
offset);
|
||||
if (mp->m_sb.sb_rblocks < dq->q_rtb.count)
|
||||
xchk_fblock_set_warning(sc, XFS_DATA_FORK,
|
||||
offset);
|
||||
} else {
|
||||
if (mp->m_sb.sb_dblocks < dq->q_blk.count)
|
||||
xchk_fblock_set_corrupt(sc, XFS_DATA_FORK,
|
||||
offset);
|
||||
if (mp->m_sb.sb_rblocks < dq->q_rtb.count)
|
||||
xchk_fblock_set_corrupt(sc, XFS_DATA_FORK,
|
||||
offset);
|
||||
}
|
||||
if (dq->q_ino.count > fs_icount || dq->q_rtb.count > mp->m_sb.sb_rblocks)
|
||||
if (dq->q_ino.count > fs_icount)
|
||||
xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user