dm thin: use block_size_is_power_of_two
authorMike Snitzer <snitzer@redhat.com>
Fri, 1 Mar 2013 22:45:45 +0000 (22:45 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 1 Mar 2013 22:45:45 +0000 (22:45 +0000)
commit58f77a2196ee65510885426e65049880be841193
tree5ba1ff6a0f75c8df0a9be1c604a30304a98dcffb
parent3daec3b447bcb894c5725e433f7331f4cdae5b0b
dm thin: use block_size_is_power_of_two

Use block_size_is_power_of_two() rather than checking
sectors_per_block_shift directly.  Also introduce local pool variable in
get_bio_block() to eliminate redundant tc->pool dereferences.

No functional change.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c