xfs: remove use of do_div with 32-bit dividend in quota
authorEric Sandeen <sandeen@sandeen.net>
Wed, 19 Apr 2017 19:55:57 +0000 (12:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Apr 2017 16:40:41 +0000 (09:40 -0700)
commit90115407c5847828d82af9bc139f690600a36219
tree3ce35b597a0b08f80d8f058b3d51f480b13b6667
parent42bf9dba40086e3d18dc29eb379f13df219d3f22
xfs: remove use of do_div with 32-bit dividend in quota

The kbuild test robot caught this; in debug code we have another
caller of do_div with a 32-bit dividend (j) which is caught now
that we are using the kernel-supplied do_div.

None of the values used here are 64-bit; just use simple division.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_qm.c