summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
AgeCommit message (Collapse)Author
2006-01-21Make sure cache_revlookup() doesn't return invalid cache entries.Pedro Martelletto
This function will be used in the future. Okay marius@.
2005-06-18Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@Todd C. Miller
2005-05-28fix one missed case for removing reverse name cache entries.marius eriksen
ok pedro@
2005-05-26styling nits, ok marius@Pedro Martelletto
2005-05-26add a reverse name mapping into the namecache. (vnode->name)marius eriksen
this will help speedup getcwd (coming soon). ok pedro@
2005-03-04Fix handling of names bigger than NCHNAMLEN in cache_enter(), okay tedu@Pedro Martelletto
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-10-04cacheing -> cachingPedro Martelletto
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-02-25set *vpp to NULL on entry. this provides a good example for other fs.Ted Unangst
ok art@
2003-01-31File system locking fixups, mostly from NetBSD:Artur Grabowski
- cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
2002-07-03Change all variables definitions (int foo) in sys/sys/*.h to variableMiod Vallat
declarations (extern int foo), and compensate in the appropriate locations.
2002-07-02use hash.h for nfs_hash as well as namei's hashEric Jackson
ok art@ costa@
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2001-05-02Use correct M_CACHE type; art@ ok.Federico G. Schwindt
2001-04-29use pool for vfs cache.Artur Grabowski
(We should really put that info into the vnode).
1999-04-28zap the newhashinit hack.Artur Grabowski
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt