]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 6 Dec 2016 16:51:28 +0000 (16:51 +0000)
commit7942010de9a2fe39e72b84e628867f4ff29a70f2
tree6d125946a6f85ef1b89960b10889174111fae30f
parent25278c2ee4d905e213252b559d922419d674e4f6
libxfs: clean up _calc_dquots_per_chunk

BugLink: http://bugs.launchpad.net/bugs/1642572
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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
fs/xfs/libxfs/xfs_dquot_buf.c