]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
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)
committerIshan Mittal <imittal@nvidia.com>
Fri, 6 Jan 2017 10:16:45 +0000 (15:46 +0530)
commit1ba29dc569d656795b449aa7fcdfa1fd576c5034
treed39c6dd870b6ac2bb3b89454ec3b4ffd789f4c10
parentf5e8161c7d7d36a5ae1b95ce72cfa9b19a24f64c
libxfs: clean up _calc_dquots_per_chunk

commit 58d789678546d46d7bbd809dd7dab417c0f23655 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_dquot_buf.c