git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f069b4
)
dm stripe: optimize chunk_size calculations
author
Mikulas Patocka
<mpatocka@redhat.com>
Fri, 27 Jul 2012 14:08:02 +0000
(15:08 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Fri, 27 Jul 2012 14:08:02 +0000
(15:08 +0100)
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>
drivers/md/dm-stripe.c
patch
|
blob
|
history
diff --cc
drivers/md/dm-stripe.c
Simple merge