From 2375c1f73b0ddce8433ae2716a17e216f737fb3b Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 25 Oct 2016 12:47:36 +1100 Subject: [PATCH] libxfs: clean up _calc_dquots_per_chunk Source kernel commit: 58d789678546d46d7bbd809dd7dab417c0f23655 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. cc: Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- libxfs/xfs_dquot_buf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libxfs/xfs_dquot_buf.c b/libxfs/xfs_dquot_buf.c index 433abe48d..aae88548e 100644 --- a/libxfs/xfs_dquot_buf.c +++ b/libxfs/xfs_dquot_buf.c @@ -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), -- 2.47.2