libxfs: clean up _calc_dquots_per_chunk
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 20 Oct 2016 04:46:18 +0000 (15:46 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:46:18 +0000 (15:46 +1100)
commit58d789678546d46d7bbd809dd7dab417c0f23655
tree47126c9ddc83c6dba3743218349c0247e50edd34
parentd099245297e28fc9f8493edd9d5a1f0967a72511
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.

cc: <stable@vger.kernel.org>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_dquot_buf.c