summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_linux.h
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2017-04-06 16:01:47 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-04-12 08:42:51 -0700
commitd956f813b6e731ef82699a18e468e37d59a1366d (patch)
treeb5264ed9414904690636a7c411e76ebb9a1488b5 /fs/xfs/xfs_linux.h
parent84358536dc355a9c8978ee425f87e116186bed16 (diff)
downloadlinux-d956f813b6e731ef82699a18e468e37d59a1366d.tar.bz2
xfs: simplify xfs_calc_dquots_per_chunk
ndquots is a 32-bit value, and we don't care about the remainder; there is no reason to use do_div here, it seems to be the result of a decade+ historical accident. Worse, the do_div implementation in userspace breaks when fed a 32-bit dividend, so we commented it out there in any case. Change to simple division, and then we can change userspace to match, and mandate a 64-bit dividend in the do_div() in userspace as well. Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_linux.h')
0 files changed, 0 insertions, 0 deletions