From: Darrick J. Wong Date: Tue, 25 Oct 2016 01:47:36 +0000 (+1100) Subject: libxfs: clean up _calc_dquots_per_chunk X-Git-Tag: v4.9.0-rc1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2375c1f73b0ddce8433ae2716a17e216f737fb3b;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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),