]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/options.h: use uint64_t for TYPE_SIZE options regardless of CPU architecture 38837/head
authorVladimir Bashkirtsev <vladimir@bashkirtsev.com>
Sun, 10 Jan 2021 01:07:56 +0000 (11:37 +1030)
committerVladimir Bashkirtsev <vladimir@bashkirtsev.com>
Sun, 10 Jan 2021 01:07:56 +0000 (11:37 +1030)
commit2745faac2783f2a77eb7a54aebd72eb0dae06a9e
tree89abd64c83e99380506d91e28961d307d659e7c5
parentd3fa8889ff1fe4f1466e27552a5b0f550f2c4900
common/options.h: use uint64_t for TYPE_SIZE options regardless of CPU architecture

On 32 bit systems TYPE_SIZE should remain as 64 bit value as large number of default options of TYPE_SIZE easily overflow 32 bit word. Also cluster wide options from 64 bit systems should fit unmodified into options structures on 32 bit systems.

Signed-off-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
src/common/options.h