Searched hist:"33 d07c0d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm-stripe.c | 33d07c0d Fri Jul 27 09:08:02 CDT 2012 Mikulas Patocka <mpatocka@redhat.com> dm stripe: optimize chunk_size calculations
dm-stripe is usually used with a chunk size that is a power of two. Use faster shifts and bit masks in such cases.
stripe_width is already optimized in a similar way.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> 33d07c0d Fri Jul 27 09:08:02 CDT 2012 Mikulas Patocka <mpatocka@redhat.com> dm stripe: optimize chunk_size calculations dm-stripe is usually used with a chunk size that is a power of two. Use faster shifts and bit masks in such cases. stripe_width is already optimized in a similar way. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
|