]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm stripe: remove stripes_mask
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 27 Jul 2012 14:08:00 +0000 (15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:00 +0000 (15:08 +0100)
commit1df05483d758ea43abc375869fbe06be506ba827
tree230f9e574467fbe34cb5a96120b9466bbc27d5f8
parentf14fa693c93078444b5e95d7cad78ead0383ad50
dm stripe: remove stripes_mask

The structure stripe_c contains a stripes_mask field. This field is
useless because it can be trivially calculated by subtracting one from
stripes. It is used only at one place. This patch removes it.

The patch also changes ffs(stripes) - 1 to __ffs(stripes).

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-stripe.c