cache: Use correct type for reclaim_blk
commitc0d3f2c794f5e60df565321c070a3ae5cc1ea3b2
authorEric Blake <eblake@redhat.com>
Sun, 1 Sep 2019 01:22:00 +0000 (31 20:22 -0500)
committerEric Blake <eblake@redhat.com>
Sun, 1 Sep 2019 01:35:46 +0000 (31 20:35 -0500)
treee8be2f9e3453eb5df8c22ec8d015be36f233bcb3
parentf7a53ed5998f34c9a2b0c39d1664f3d3a4c6d417
cache: Use correct type for reclaim_blk

We already prohibit images larger than 2^63, so there are not that
many blocks to worry about.  But using an unsigned type means our loop
is not quite right:

reclaim.c: In function ‘reclaim_lru’:
reclaim.c:162:24: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
  162 |   } while (reclaim_blk >= 0 && old_reclaim_blk != reclaim_blk);
      |                        ^~

Fixes: 602eb003
Signed-off-by: Eric Blake <eblake@redhat.com>
filters/cache/reclaim.c