libxfs: clean up _calc_dquots_per_chunk
PATCH 1/1 libxfs: clean up _calc_dquots_per_chunk
The function xfs_calc_dquots_per_chunk takes a parameter in units of basic blocks. The kernel seems to get the units wrong, but userspace got 'fixed' by commenting out the unnecessary conversion. Fix both.
(This is the xfsprogs patch.)
Signed-off-by Darrick J. Wong <[email protected]>
--- libxfs/xfs_dquot_buf.c | 1 - 1 file changed, 1 deletion(-)
libxfs/xfs_dquot_buf.c +0 -1
@@ -200,7 +200,6 @@ xfs_dquot_buf_verify_crc( ndquots = mp->m_quotainfo->qi_dqperchunk; else ndquots =xfs_calc_dquots_per_chunk (bp->b_length); -// XFS_BB_TO_FSB(mp, bp->b_length)); for (i = 0; i < ndquots; i++, d++) { if (!xfs_verify_cksum((char *)d, sizeof(struct xfs_dqblk),
Quoted 8 lines · Darrick J. Wong
The function
xfs_calc_dquots_per_chunktakes a parameter in units of basic blocks. The kernel seems to get the units wrong, but userspace got 'fixed' by commenting out the unnecessary conversion. Fix both.(This is the xfsprogs patch.)
Signed-off-by Darrick J. Wong <[email protected]>
ok that's a cleanup ;)
Reviewed-by Eric Sandeen <[email protected]>
Quoted 21 lines
--- libxfs/xfs_dquot_buf.c | 1 - 1 file changed, 1 deletion(-)libxfs/xfs_dquot_buf.c +0
-2@@ -200,7 +200,6 @@ xfs_dquot_buf_verify_crc( ndquots = mp->m_quotainfo->qi_dqperchunk; else ndquots =xfs_calc_dquots_per_chunk (bp->b_length); -// XFS_BB_TO_FSB(mp, bp->b_length)); for (i = 0; i < ndquots; i++, d++) { if (!xfs_verify_cksum((char *)d, sizeof(struct xfs_dqblk), --To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html