]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: clean up _calc_dquots_per_chunk
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:47:36 +0000 (12:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:47:36 +0000 (12:47 +1100)
commit2375c1f73b0ddce8433ae2716a17e216f737fb3b
tree3cd9224d00ea4a7ad39683e05a69e2d2afdf5f07
parent114c49821dfe4cdd30e92988b22f738025cf94cd
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: <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>
libxfs/xfs_dquot_buf.c