dm: use is_power_of_2
authorvignesh babu <vignesh.babu@wipro.com>
Fri, 19 Oct 2007 21:38:44 +0000 (22:38 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 20 Oct 2007 01:01:06 +0000 (02:01 +0100)
commit6f3c3f0afa50782dc1742c968646c491657d255a
treecb1f69504094cec60564be51c405bba5eb66c322
parentae9da83f6d800fe1f3b23bfbc8f7222ad1c5bb74
dm: use is_power_of_2

Replacing n & (n - 1) for power of 2 check by is_power_of_2(n)

Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c
drivers/md/dm-snap.c
drivers/md/dm-stripe.c