commit | 0e91d131dcb21b45b21762c77c6d0377fa16f80d | [log] [tgz] |
---|---|---|
author | Gao Xiang <hsiangkao@aol.com> | Mon Oct 14 19:11:30 2019 +0800 |
committer | Gao Xiang <hsiangkao@aol.com> | Tue Oct 15 23:56:03 2019 +0800 |
tree | f6b0f34f4d844324fe39652a8e0dc10ee2ad2d71 | |
parent | 561cf9fb45d712e0dd460a03b8cb2b27f658f50b [diff] |
erofs-utils: use cmpsgn(x, y) for standardized large value comparsion Previously, roundup(bb->buffers.off % EROFS_BLKSIZ, alignsize) + incr + extrasize is an unsigned 64bit value and sgn(x) didn't work properly. Fix it. Link: https://lore.kernel.org/r/20191015155025.13215-1-hsiangkao@aol.com Fixes: b0ca535297b6 ("erofs-utils: support 64-bit internal buffer cache") Reviewed-and-tested-by: Li Guifu <blucerlee@gmail.com> Signed-off-by: Gao Xiang <hsiangkao@aol.com>