Whamcloud - gitweb
LU-6174 osd-ldiskfs: perform proper division 50/36750/5
authorJames Simmons <jsimmons@infradead.org>
Fri, 13 Mar 2020 13:54:31 +0000 (09:54 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 24 Mar 2020 05:15:31 +0000 (05:15 +0000)
commited2c88b78c88b13f9cbcb3430909350915363ae5
treead0c3c145d95e704897d0ae88da7a1314e77b64d
parent8c1b62d09484161a40071c0aeecd1f1753d56870
LU-6174 osd-ldiskfs: perform proper division

The used value calculated for osd_inode_iteration() and
sf_items_updated_prior are both 64 bit values. The code
wrongly using do_div() which could truncate sf_items_updated_prior
to a 32 bit value. Use div64_u64() instead.

Change-Id: I3d76e399e6cf50460d98b1174de83263d9c2d3cc
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/36750
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
lustre/osd-ldiskfs/osd_scrub.c