diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2017-04-19 15:55:57 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-04-25 12:40:41 -0400 |
commit | 90115407c5847828d82af9bc139f690600a36219 (patch) | |
tree | 3ce35b597a0b08f80d8f058b3d51f480b13b6667 | |
parent | 42bf9dba40086e3d18dc29eb379f13df219d3f22 (diff) |
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>
-rw-r--r-- | fs/xfs/xfs_qm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index b669b123287b..4ac5b187534e 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -851,8 +851,8 @@ xfs_qm_reset_dqcounts( | |||
851 | * started afresh by xfs_qm_quotacheck. | 851 | * started afresh by xfs_qm_quotacheck. |
852 | */ | 852 | */ |
853 | #ifdef DEBUG | 853 | #ifdef DEBUG |
854 | j = XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB); | 854 | j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) / |
855 | do_div(j, sizeof(xfs_dqblk_t)); | 855 | sizeof(xfs_dqblk_t); |
856 | ASSERT(mp->m_quotainfo->qi_dqperchunk == j); | 856 | ASSERT(mp->m_quotainfo->qi_dqperchunk == j); |
857 | #endif | 857 | #endif |
858 | dqb = bp->b_addr; | 858 | dqb = bp->b_addr; |