diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2011-07-01 13:38:20 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2011-07-01 13:38:20 +0000 |
commit | 563a185ff4521633e47d598210615c35acc44830 (patch) | |
tree | 693262bd37685f43fa6d4264f4e1f2180d0e86fa | |
parent | f27028dbb69276c8fe810196418957b7860419cc (diff) | |
download | rockbox-563a185ff4521633e47d598210615c35acc44830.tar.gz rockbox-563a185ff4521633e47d598210615c35acc44830.zip |
Fixed incorrect dircache reallocation during tagcache commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30108 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/common/dircache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c index 375ffa63ec..2ce178c7b9 100644 --- a/firmware/common/dircache.c +++ b/firmware/common/dircache.c | |||
@@ -828,11 +828,17 @@ int dircache_build(int last_size) | |||
828 | /* Background build, dircache has been previously allocated */ | 828 | /* Background build, dircache has been previously allocated */ |
829 | if (dircache_size > 0) | 829 | if (dircache_size > 0) |
830 | { | 830 | { |
831 | d_names_start = d_names_end; | ||
832 | dircache_size = 0; | ||
833 | reserve_used = 0; | ||
831 | thread_enabled = true; | 834 | thread_enabled = true; |
832 | dircache_initializing = true; | 835 | dircache_initializing = true; |
836 | generate_dot_d_names(); | ||
837 | |||
833 | queue_post(&dircache_queue, DIRCACHE_BUILD, 0); | 838 | queue_post(&dircache_queue, DIRCACHE_BUILD, 0); |
834 | return 2; | 839 | return 2; |
835 | } | 840 | } |
841 | |||
836 | if (last_size > DIRCACHE_RESERVE && last_size < DIRCACHE_LIMIT ) | 842 | if (last_size > DIRCACHE_RESERVE && last_size < DIRCACHE_LIMIT ) |
837 | { | 843 | { |
838 | allocated_size = last_size + DIRCACHE_RESERVE; | 844 | allocated_size = last_size + DIRCACHE_RESERVE; |