1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

io: keep 64b arithmetic

Widen to 64b arithmetic from start.
This commit is contained in:
Zdenek Kabelac 2018-02-25 22:32:14 +01:00
parent 261e6c3df6
commit 6b48868cf0

View File

@ -117,7 +117,7 @@ int dev_async_setup(struct cmd_context *cmd)
int r; int r;
_aio_max = find_config_tree_int(cmd, devices_aio_max_CFG, NULL); _aio_max = find_config_tree_int(cmd, devices_aio_max_CFG, NULL);
_aio_memory_max = find_config_tree_int(cmd, devices_aio_memory_CFG, NULL) * 1024 * 1024; _aio_memory_max = find_config_tree_int(cmd, devices_aio_memory_CFG, NULL) * INT64_C(1024 * 1024);
/* Threshold is zero? */ /* Threshold is zero? */
if (!_aio_max || !_aio_memory_max) { if (!_aio_max || !_aio_memory_max) {