lib/axmap: Optimize __axmap_set()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 22 Aug 2018 20:22:12 +0000 (13:22 -0700)
committerBart Van Assche <bvanassche@acm.org>
Thu, 23 Aug 2018 01:59:24 +0000 (18:59 -0700)
commit1cf97788d4e533e4216160c2715f14596106e1e5
tree49fde332d4b4aa35329f3ae410163b56b72aa1d3
parent15a4f4962fad9e1777bcc662b3391f521ace8c5b
lib/axmap: Optimize __axmap_set()

Since it is guaranteed that nr_bits <= BLOCKS_PER_UNIT and since
axmap_set_fn() needs to be called only once to set that number of
bits, remove the loop from __axmap_set().

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
lib/axmap.c