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:
89cab5b
)
Squashfs: optimise squashfs_cache_get entry search
author
Ajeet Yadav
<ajeet.yadav.77@gmail.com>
Tue, 27 Dec 2011 09:40:04 +0000
(15:10 +0530)
committer
Phillip Lougher
<phillip@squashfs.org.uk>
Fri, 30 Dec 2011 01:24:13 +0000
(
01:24
+0000)
squashfs_cache_get() iterates over all entries to search for
block its looking for. Often get() / put() are called for
same block.
If we cache the current entry index, then we can optimise the
subsequent *_get() calls.
Signed-off-by: Ajeet Yadav <ajeet.yadav.77@gmail.com>
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
No differences found