]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: pass an uint64_t to clip_io() as the 3rd param
authorKefu Chai <kchai@redhat.com>
Mon, 27 Mar 2017 03:58:41 +0000 (11:58 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Mar 2017 04:04:35 +0000 (12:04 +0800)
commitf7f5cc7aa19ff291f43ae10e64db705c5c6d302d
tree5fc4bee54365a3ea52242d2525a2a6ff66d4200c
parente32b1b8793c4dcb22907cb86152c48360ac7a0ff
librbd: pass an uint64_t to clip_io() as the 3rd param

because, on arm32, size_t is "unsigned", while uint64_t is "long long
unsigned int", compiler is not able to promote the former to the latter
automatically. and ImageRequest::Extents::value_type::second_type is
indeed uint64_t, which is expected by clip_io(). so let's just use
"auto" here.

Fixes: http://tracker.ceph.com/issues/18938
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/librbd/io/ImageRequest.cc