Check-in [c06f6055d2]

Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:c06f6055d2a642ee7872e37be72effc7dee27e13
Date: 2009-06-15 20:28:57
User: stephan
Comment:removed some unused code.
Tags And Properties
Changes
hide diffs unified diffs patch

Changes to whefs_cache.c

Old (f6904bced88a4acf) New (ac9c827ea8d45781)
1 /** 1 /**
2 Author: Stephan Beal (http://wanderinghorse.net/home/stephan/ 2 Author: Stephan Beal (http://wanderinghorse.net/home/stephan/
3 3
4 License: Public Domain 4 License: Public Domain
5 5
218 hidden lines
224 } 224 }
225 } 225 }
226 #endif // WHEFS_FS_BITSET_CACHE_ENABLED 226 #endif // WHEFS_FS_BITSET_CACHE_ENABLED
227 rc = whefs_inode_name_get( fs, i, &name ); 227 rc = whefs_inode_name_get( fs, i, &name );
228 if( whefs_rc.OK != rc ) break; 228 if( whefs_rc.OK != rc ) break;
229 #if 0 <
230 // already done via whefs_inode_name_get(). <
231 if( !*name.string ) continue; <
232 ++count; <
233 h.id = i; <
234 h.hash = fs->cache.hashfunc( name.string ); <
235 whefs_hashid_list_add( li, &h ); <
236 #endif <
237 } 229 }
238 assert( (name.string == (char *)buf) && "Internal memory management foo-foo." ); 230 assert( (name.string == (char *)buf) && "Internal memory management foo-foo." );
239 whefs_hashid_list_sort(li); 231 whefs_hashid_list_sort(li);
240 //WHEFS_DBG("loaded names caches with %u name(s).",count); 232 //WHEFS_DBG("loaded names caches with %u name(s).",count);
241 return rc; 233 return rc;
109 hidden lines
351 H.id = id; 343 H.id = id;
352 rc = whefs_hashid_list_add( fs->cache.hashes, &H ); 344 rc = whefs_hashid_list_add( fs->cache.hashes, &H );
353 if(0) WHEFS_DBG("Added to name cache: hash[%"WHEFS_HASHVAL_TYPE_PFMT"]=id[%"WHEFS_ID_TYPE_PFMT"], name=[%s], rc=%d", H.hash, H.id, name, rc ); 345 if(0) WHEFS_DBG("Added to name cache: hash[%"WHEFS_HASHVAL_TYPE_PFMT"]=id[%"WHEFS_ID_TYPE_PFMT"], name=[%s], rc=%d", H.hash, H.id, name, rc );
354 return whefs_rc.OK; 346 return whefs_rc.OK;
355 } 347 }