Whamcloud - gitweb
LU-11830 lov: avoid signed vs. unsigned comparison
In the expansion of do_div64() GCC complains about pointer comparison
because loff_t is not a u64 variable as it should be. lov_do_div64()
also has signed vs. unsigned comparisons due to a signed loff_t.
Change lov_do_div() to use a 64-bit variable for do_div() instead of
loff_t to avoid these warnings.
Change OST_MAXREQSIZE and friends to be consistently unsigned values
to avoid compiler warnings.
Fix "lfs mirror resync" to avoid comparing signed and unsigned valued.
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I6df31a2c0d75e5777f471fe8cb252715dd85a5b1
Reviewed-on: https://review.whamcloud.com/33921
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>