summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/dircache.c6
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;