]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cbd9de93477062f8a5a1f2159d780b712fb5454
treecb1f69504094cec60564be51c405bba5eb66c322
parent9d594a7acea71299e6e3d823d634a6d0dc165624
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