OpenBSD CVS

CVS log for src/sys/kern/vfs_cache.c


[BACK] Up to [local] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.58 / (download) - annotate - [select for diffs], Sun Aug 14 01:58:28 2022 UTC (21 months, 4 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.57: +1 -3 lines
Diff to previous 1.57 (colored)

remove unneeded includes in sys/kern
ok mpi@ miod@

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jun 4 19:42:54 2018 UTC (6 years ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.56: +2 -4 lines
Diff to previous 1.56 (colored)

Sync VFS documentation with reality

Missed during the "Namecache revamp" in 2009.

Reported by Georg Bege <georg at bege dot email>, thanks.

OK visa jmc mpi jca

Revision 1.56 / (download) - annotate - [select for diffs], Sun May 27 06:02:14 2018 UTC (6 years ago) by visa
Branch: MAIN
Changes since 1.55: +3 -4 lines
Diff to previous 1.55 (colored)

Drop unnecessary `p' parameter from vget(9).

OK mpi@

Revision 1.55 / (download) - annotate - [select for diffs], Wed May 2 02:24:56 2018 UTC (6 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking.

OK mpi@

Revision 1.54 / (download) - annotate - [select for diffs], Sat Apr 28 03:13:05 2018 UTC (6 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.

OK mpi@, deraadt@

Revision 1.53 / (download) - annotate - [select for diffs], Thu Feb 9 19:02:34 2017 UTC (7 years, 4 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.52: +7 -11 lines
Diff to previous 1.52 (colored)

Use TAILQ_FOREACH_SAFE in cache_purgevfs().  Fix whitespaces.
No binary change.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Sep 16 03:21:16 2016 UTC (7 years, 8 months ago) by dlg
Branch: MAIN
Changes since 1.51: +17 -10 lines
Diff to previous 1.51 (colored)

move the namecache_rb_tree from RB macros to RBT functions.

i had to shuffle the includes a bit. all the knowledge of the RB
tree is now inside vfs_cache.c, and all accesses are via cache_*
functions.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 15 02:00:16 2016 UTC (7 years, 8 months ago) by dlg
Branch: MAIN
Changes since 1.50: +2 -3 lines
Diff to previous 1.50 (colored)

all pools have their ipl set via pool_setipl, so fold it into pool_init.

the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.

most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.

the manpage and subr_pool.c bits i did myself.

ok tedu@ jmatthew@

@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);

Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 25 00:01:13 2016 UTC (7 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)

pool_setipl

ok kettenis@

Revision 1.49 / (download) - annotate - [select for diffs], Sat Mar 19 12:04:15 2016 UTC (8 years, 2 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Remove the unused flags argument from VOP_UNLOCK().

torture tested on amd64, i386 and macppc
ok beck mpi stefan
"the change looks right" deraadt

Revision 1.48 / (download) - annotate - [select for diffs], Mon Mar 7 18:43:59 2016 UTC (8 years, 3 months ago) by naddy
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Sync no-argument function declaration and definition by adding (void).
ok mpi@ millert@

Revision 1.47 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:51 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.46: +1 -2 lines
Diff to previous 1.46 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jan 28 20:16:04 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

revert back to initial vnodes again so we can be sure nfs likes it

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 16 21:16:14 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

increase namecache to maxvnodes again now that the n^2 loop is no more.
battle tested by krw

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 16 17:05:49 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.43: +3 -11 lines
Diff to previous 1.43 (colored)

increasing the size of the namecache suddenly made the comment
"This makes the algorithm O(n^2), but do you think I care?"
a lot more meaningful, as discovered by krw.
fix the loop so it doesn't restart all the time, as it's not necessary.
(this was also tried years ago in rev 1.20 and reverted, but that change
also introduced pool_put before the namecache was ready to free things. we
have been freeing cache entries with pool_put for some time now, so that's
been made safe.)
ok deraadt krw

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jan 12 20:00:11 2015 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

revert the namecache embiggening since it seems to cause hangs at reboot.
reported and revert tested by krw

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 9 05:01:56 2015 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

rename desiredvnodes to initialvnodes. less of a lie. ok beck deraadt

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jan 8 18:07:35 2015 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

increase namecache size to follow maxvnodes. seems better than desiredvnodes.
(accuracy of variable names, aside)
ok kettenis

Revision 1.40 / (download) - annotate - [select for diffs], Fri Dec 19 05:59:21 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

start retiring the nointr allocator. specify PR_WAITOK as a flag as a
marker for which pools are not interrupt safe. ok dlg

Revision 1.39 / (download) - annotate - [select for diffs], Tue Dec 16 18:30:04 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

primary change: move uvm_vnode out of vnode, keeping only a pointer.
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 10 02:44:47 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

convert bcopy to memcpy. ok millert

Revision 1.37 / (download) - annotate - [select for diffs], Sat Sep 13 16:06:37 2014 UTC (9 years, 8 months ago) by doug
Branch: MAIN
Changes since 1.36: +3 -5 lines
Diff to previous 1.36 (colored)

Replace all queue *_END macro calls except CIRCLEQ_END with NULL.

CIRCLEQ_* is deprecated and not called in the tree.  The other queue types
have *_END macros which were added for symmetry with CIRCLEQ_END.  They are
defined as NULL.  There's no reason to keep the other *_END macro calls.

ok millert@

Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 27 15:48:43 2013 UTC (10 years, 6 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored)

Assert that we never have destinations cached for a non-VDIR vnode.

ok beck@

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 27 01:56:50 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

rename NCHNAMLEN to NAMECACHE_MAXLEN. easier to read, easier to type.
ok beck deraadt after a style issue noticed by kettenis

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jan 4 18:11:51 2012 UTC (12 years, 5 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.33: +9 -8 lines
Diff to previous 1.33 (colored)


Fix use after free in cache_lookup() - found by Pedro

fix is to manipulate the name cache structures before
potentially sleeping on a vn_lock(). This avoids the race of
the ncp entry being recycled while we are asleep.

run in snaps and on ftp.openbsd.org for months

ok thib@

Revision 1.33 / (download) - annotate - [select for diffs], Wed May 19 08:31:23 2010 UTC (14 years ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.32: +11 -24 lines
Diff to previous 1.32 (colored)

clean up a few things that where left to rot after bob's vfs cache work.
sync a few comments to reality (or remove them), remove the cn_hash member
from struct componentname, spacing.

ok beck@

Revision 1.32 / (download) - annotate - [select for diffs], Mon Aug 24 15:51:40 2009 UTC (14 years, 9 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.31: +0 -1 lines
Diff to previous 1.31 (colored)

garbage collect the nchash variable that used to store the
size of cache hashtable that has now been removed.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 12 16:42:24 2009 UTC (14 years, 10 months ago) by beck
Branch: MAIN
Changes since 1.30: +178 -146 lines
Diff to previous 1.30 (colored)

Namecache revamp.

This eliminates the large single namecache hash table, and implements
the name cache as a global lru of entires, and a redblack tree in each
vnode. It makes cache_purge actually purge the namecache entries associated
with a vnode when a vnode is recycled (very important for later on actually being
able to resize the vnode pool)

This commit does #if 0 out a bunch of procmap code that was
already broken before this change, but needs to be redone completely.

Tested by many, including in thib's nfs test setup.

ok oga@,art@,thib@,miod@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jul 9 22:29:56 2009 UTC (14 years, 11 months ago) by thib
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29 (colored)

Remove the VREF() macro and replaces all instances with a call to verf(),
which is exactly what the macro does.

Macro's that are nothing more then:
#define FUNCTION(arg) function(arg)
are almost always pointless and should go away.

OK blambert@
Agreed by many.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Oct 24 00:22:57 2008 UTC (15 years, 7 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.28: +7 -9 lines
Diff to previous 1.28 (colored)

another oops.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Oct 23 23:54:02 2008 UTC (15 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.27: +10 -8 lines
Diff to previous 1.27 (colored)

a better fix for the "uvm_km thread runs out of memory" problem.

add a new arg to the backend so it can tell pool to slow down.  when we get
this flag, yield *after* putting the page in the pool's free list.  whatever
we do, don't let the thread sleep.

this makes things better by still letting the thread run when a huge pf
request comes in, but without artificially increasing pressure on the backend
by eating pages without feeding them forward.

ok deraadt

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 20 20:33:07 2008 UTC (15 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +14 -9 lines
Diff to previous 1.26 (colored)

The optimization done in 1.19 (and repaired in 1.20) results in
cache entries which are freed (and potentially reused), but which are
currently in use by another kernel thread which was sleeping in vput()
or vget().  This causes the crash in PR 5960, but potentially a
bunch of other side effects. figured out with pedro.
ok kettenis

Revision 1.26 / (download) - annotate - [select for diffs], Tue May 6 20:57:19 2008 UTC (16 years, 1 month ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Add a PR_ZERO flag for pools, to compliment the M_ZERO
malloc flag, does the same thing.
use it in a few places.

OK tedu@, "then go ahead. and don't forget the manpage (-:" miod@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 21 12:05:14 2007 UTC (16 years, 11 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.24: +4 -5 lines
Diff to previous 1.24 (colored)

english, okay jmc@

Revision 1.24 / (download) - annotate - [select for diffs], Wed May 30 04:27:42 2007 UTC (17 years ago) by beck
Branch: MAIN
Changes since 1.23: +50 -87 lines
Diff to previous 1.23 (colored)

back out vfs change - todd fries has seen afs issues, and I'm suspicious
this can cause other problems.

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 29 17:33:27 2007 UTC (17 years ago) by beck
Branch: MAIN
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored)

missing couple of #ifdef DIAGNOSTIC and style nits from art@

Revision 1.22 / (download) - annotate - [select for diffs], Tue May 29 05:28:53 2007 UTC (17 years ago) by beck
Branch: MAIN
Changes since 1.21: +83 -47 lines
Diff to previous 1.21 (colored)


	Step one of some vnode improvements - change getnewvnode to
actually allocate "desiredvnodes" - add a vdrop to un-hold a vnode held
with vhold, and change the name cache to make use of vhold/vdrop, while
keeping track of which vnodes are referred to by which cache entries to
correctly hold/drop vnodes when the cache uses them.
ok thib@, tedu@, art@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 19 09:25:33 2007 UTC (17 years, 1 month ago) by pedro
Branch: MAIN
Changes since 1.20: +7 -6 lines
Diff to previous 1.20 (colored)

Fix freeing of namecache entries in cache_purgevfs(), okay miod@ art@

Revision 1.20 / (download) - annotate - [select for diffs], Thu Apr 19 07:45:20 2007 UTC (17 years, 1 month ago) by art
Branch: MAIN
Changes since 1.19: +8 -14 lines
Diff to previous 1.19 (colored)

After we bumped the maximal number of vnodes by quite a bit we became
painfully aware of what the comment:
   "This makes the algorithm O(n^2), but do you think I care?"
actually means. I started to care.

Fix up the cache_purgevfs algorithm to not be O(n^2) since it's not
preemptible anyway and while I'm here, make this code actually return
the cache entries to the pool instead of hogging them and implement a
marginally faster free list. This way we return memory to the system
when some parameters change.

miod@ ok

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 21 00:00:55 2006 UTC (18 years, 4 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Make sure cache_revlookup() doesn't return invalid cache entries.
This function will be used in the future. Okay marius@.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jun 18 18:09:42 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.17: +1 -12 lines
Diff to previous 1.17 (colored)

Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@

Revision 1.17 / (download) - annotate - [select for diffs], Sat May 28 07:28:07 2005 UTC (19 years ago) by marius
Branch: MAIN
Changes since 1.16: +5 -1 lines
Diff to previous 1.16 (colored)

fix one missed case for removing reverse name cache entries.

ok pedro@

Revision 1.16 / (download) - annotate - [select for diffs], Thu May 26 23:28:39 2005 UTC (19 years ago) by pedro
Branch: MAIN
Changes since 1.15: +10 -10 lines
Diff to previous 1.15 (colored)

styling nits, ok marius@

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 26 22:40:53 2005 UTC (19 years ago) by marius
Branch: MAIN
Changes since 1.14: +126 -23 lines
Diff to previous 1.14 (colored)

add a reverse name mapping into the namecache.  (vnode->name)

this will help speedup getcwd (coming soon).

ok pedro@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 4 11:43:37 2005 UTC (19 years, 3 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.13: +3 -6 lines
Diff to previous 1.13 (colored)

Fix handling of names bigger than NCHNAMLEN in cache_enter(), okay tedu@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 26 21:22:13 2004 UTC (19 years, 5 months ago) by miod
Branch: MAIN
Changes since 1.12: +7 -6 lines
Diff to previous 1.12 (colored)

Use list and queue macros where applicable to make the code easier to read;
no change in compiler assembly output.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Oct 4 12:03:45 2004 UTC (19 years, 8 months ago) by pedro
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

cacheing -> caching

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Sat Jun 7 11:03:41 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.3.4.3: +2 -6 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync SMP branch to -current

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:07 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Mon May 19 22:31:57 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.5.4.2: +99 -21 lines
Diff to previous 1.5.4.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:27 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.3.4.2: +105 -22 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored)

Sync the SMP branch with 3.3

Revision 1.10 / (download) - annotate - [select for diffs], Tue Feb 25 09:48:33 2003 UTC (21 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.9: +3 -6 lines
Diff to previous 1.9 (colored)

set *vpp to NULL on entry.  this provides a good example for other fs.

ok art@

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 31 17:37:50 2003 UTC (21 years, 4 months ago) by art
Branch: MAIN
Changes since 1.8: +102 -21 lines
Diff to previous 1.8 (colored)

File system locking fixups, mostly from NetBSD:
- 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

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:44 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.5.4.1: +8 -3 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored)

sync to -current

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 3 21:19:08 2002 UTC (21 years, 11 months ago) by miod
Branch: MAIN
CVS Tags: UBC_SYNC_B, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 2 04:23:25 2002 UTC (21 years, 11 months ago) by ericj
Branch: MAIN
Changes since 1.6: +6 -3 lines
Diff to previous 1.6 (colored)


use hash.h for nfs_hash as well as namei's hash
ok art@ costa@

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Wed Mar 6 02:13:24 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.3.4.1: +2 -2 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)

Merge in trunk

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Thu Jan 31 22:55:41 2002 UTC (22 years, 4 months ago) by niklas
Branch: UBC
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Merge in -current, builds on i386, otherwise untested

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 23 00:39:48 2002 UTC (22 years, 4 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Pool deals fairly well with physical memory shortage, but it doesn't deal
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.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Wed Jul 4 10:48:48 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.3: +7 -3 lines
Diff to previous 1.3 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 2 05:55:13 2001 UTC (23 years, 1 month ago) by fgsch
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Use correct M_CACHE type; art@ ok.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 29 20:58:37 2001 UTC (23 years, 1 month ago) by art
Branch: MAIN
Changes since 1.3: +7 -3 lines
Diff to previous 1.3 (colored)

use pool for vfs cache.
(We should really put that info into the vnode).

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 28 09:28:15 1999 UTC (25 years, 1 month ago) by art
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: SMP
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

zap the newhashinit hack.
Add an extra flag to hashinit telling if it should wait in malloc.
update all calls to hashinit.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 3 17:20:23 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +7 -2 lines
Diff to previous 1.1 (colored)

From NetBSD: 960217 merge

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:52:47 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:52:47 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.