aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/name-cache.c
Commit message (Collapse)AuthorAgeFilesLines
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-15/+15
| | | | | | | | | | | | | | | | | | | | * diskfs.h (diskfs_lookup_hard, diskfs_lookup, diskfs_set_translator, diskfs_create_symlink_hook, diskfs_notice_dirchange, diskfs_direnter, diskfs_direnter_hard, diskfs_dirrewrite, diskfs_dirremove, diskfs_create_node, diskfs_enter_lookup_cache, diskfs_check_lookup_cache, dir_rename_dir, diskfs_set_options): Add `const' qualifier to `char *' parameters where appropriate. * opts-set.c (diskfs_set_options): Fix defn with `const'. * node-create.c (diskfs_create_node): Likewise. * name-cache.c (diskfs_enter_lookup_cache): Likewise. (diskfs_check_lookup_cache): Likewise. * dirremove.c (diskfs_dirremove): Likewise. * dirrewrite.c (diskfs_dirrewrite): Likewise. * lookup.c (diskfs_lookup): Likewise. * direnter.c (diskfs_direnter): Likewise. * dir-renamed.c (diskfs_rename_dir): Likewise. * dir-chg.c (diskfs_notice_dirchange): Likewise.
* Thu Jul 24 12:57:26 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-07-291-2/+2
| | | | * name-cache.c (find_cache): Grammar doc fix.
* *** empty log message ***Thomas Bushnell1996-09-041-19/+93
|
* (struct lookup_cache): Add HDR, remove NEXT & PREV.Miles Bader1996-04-291-93/+15
| | | | | | | | (lookup_cache): Change type to struct cacheq. (mru_cache, lru_cache): Variables removed. (make_mru, make_lru, init_lookup_cache): Functions removed. (find_cache, diskfs_purge_lookup_cache, diskfs_check_lookup_cache): Use cacheq functions.
* (diskfs_enter_lookup_cache): Never cache . or ..Michael I. Bushnell1996-04-121-0/+7
|
* (struct lookup_cache):Miles Bader1996-04-101-65/+175
| | | | | | | | | | | | | | | | Add NEXT & PREV fields. Rename LEN back to NAME_LEN. (lru_cache, mru_cache): New variables. (first_cache, last_cache): Variables removed. (make_mru, make_lru, find_cache, init_lookup_cache): New functions. (diskfs_enter_lookup_cache, diskfs_purge_lookup_cache, diskfs_check_lookup_cache): Rewrite to use the linked list. Deal with negative entries. Reuse old entries for the given name.
* (diskfs_check_lookup_cache):Miles Bader1996-04-101-109/+77
| | | | | | | | | | Correctly handle the case where the lookup returns DIR itself. (diskfs_enter_lookup_cache, diskfs_purge_lookup_cache, diskfs_check_lookup_cache): Renamed from versions without `lookup_'. (diskfs_check_cache): Declare I. (struct lookup_cache, diskfs_enter_cache): Change NAMELEN field to LEN. (_diskfs_purge_cache_deletion): Delete function.
* (diskfs_purge_cache): If freeing node at LOOKUP_CACHE_TAIL, bumpMichael I. Bushnell1996-04-021-0/+4
| | | | | LOOKUP_CACHE_TAIL back itself too. (_diskfs_purge_cache_deletion): Likewise.
* (diskfs_enter_cache): Don't set LC->next->prev if LC->next is null.Michael I. Bushnell1996-04-021-1/+2
|
* (statistics): New variable.Michael I. Bushnell1996-03-251-0/+11
| | | | (diskfs_check_cache): Keep statistics on cache performance.
* *** empty log message ***Michael I. Bushnell1996-03-191-7/+9
|
* Initial revisionMichael I. Bushnell1996-03-191-0/+166