lib/axmap: a few fixes/cleanups
authorJens Axboe <axboe@kernel.dk>
Wed, 30 Aug 2017 19:03:26 +0000 (13:03 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Aug 2017 19:03:26 +0000 (13:03 -0600)
commit2b2fa7f5ecfd5cd5b54a209934b05b770e9c9301
tree48b1710068c9fb9c506462abe1b298436eb45290
parent63463983ce10e9678c5ad309608630eea873b4df
lib/axmap: a few fixes/cleanups

- If we clear a bit and it's lower than the first free cache,
  update the cache.

- Mark bit_masks[] as const.

- Clean up logic in axmap_first_free()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/axmap.c