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:
fb5ab4b
)
md: raid0: remove ->sectors from the strip_zone structure.
author
NeilBrown
<neilb@suse.de>
Tue, 16 Jun 2009 06:50:35 +0000
(16:50 +1000)
committer
NeilBrown
<neilb@suse.de>
Tue, 16 Jun 2009 06:50:35 +0000
(16:50 +1000)
storing ->sectors is redundant as is can be computed from the
difference z->zone_end - (z-1)->zone_end
The one place where it is used, it is just as efficient to use
a zone_end value instead.
And removing it makes strip_zone smaller, so they array of these that
is searched on every request has a better chance to say in cache.
So discard the field and get the value from elsewhere.
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid0.c
patch
|
blob
|
history
drivers/md/raid0.h
patch
|
blob
|
history
diff --cc
drivers/md/raid0.c
Simple merge
diff --cc
drivers/md/raid0.h
Simple merge