Whamcloud - gitweb
LU-6174 lod: remove incorrect ll_do_div64 01/38101/2
authorJames Simmons <jsimmons@infradead.org>
Mon, 30 Mar 2020 17:06:19 +0000 (13:06 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:18:27 +0000 (17:18 +0000)
commit12ed98d4ef294b78393bc9acb2aefd570b263855
tree667c14deccdfbcb770af374797fcb2983457f198
parent465886449681113fab0bceee967ccbe2562224a1
LU-6174 lod: remove incorrect ll_do_div64

ll_do_div64() is just a wrapper around do_div() which is handled
incorrectly. do_div() expects a 32 bit value but stripe_count is
cast to 64 bits which is incorrect. Instead lets just avoid
casting and use do_div() directly.

Change-Id: I08601fdf8e9d5fdf26981f073dd602775c12281b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/38101
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_object.c