The NetBSD Project

CVS log for src/sys/fs/tmpfs/tmpfs_subr.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / tmpfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.97 / (download) - annotate - [select for diffs], Mon Sep 8 14:49:46 2014 UTC (2 months, 2 weeks ago) by gson
Branch: MAIN
CVS Tags: HEAD
Changes since 1.96: +2 -3 lines
Diff to previous 1.96 (colored)

Store symlinks without a NUL terminator so that lstat(2) returns the
correct length.  Fixes the tmpfs part of PR kern/48864.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (3 months ago) by tls
Branch: tls-maxphys
Changes since 1.79: +310 -258 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:02 2014 UTC (6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.77.2.1: +310 -258 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:06 2014 UTC (6 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.79: +310 -258 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

sync with head

Revision 1.96 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:56 2014 UTC (9 months, 4 weeks ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7
Changes since 1.95: +5 -2 lines
Diff to previous 1.95 (colored)

Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30

Revision 1.95 / (download) - annotate - [select for diffs], Fri Jan 17 10:55:02 2014 UTC (10 months ago) by hannken
Branch: MAIN
Changes since 1.94: +2 -3 lines
Diff to previous 1.94 (colored)

Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jan 8 16:11:04 2014 UTC (10 months, 2 weeks ago) by pedro
Branch: MAIN
Changes since 1.93: +18 -19 lines
Diff to previous 1.93 (colored)

Allocate direntp on the stack in tmpfs_dir_getdents(), thus saving
calls to kmem_zalloc() and kmem_free(); OK rmind@. From OpenBSD.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Jan 3 09:53:12 2014 UTC (10 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.92: +10 -3 lines
Diff to previous 1.92 (colored)

Fix a race where thread1 runs VOP_REMOVE() and gets preempted in
tmpfs_reclaim() before the call to tmpfs_free_node().  Thread2
runs VFS_FHTOVP() and gets a new vnode attached to the node thread1
is about to destroy.

Change tmpfs_alloc_node() to always assign non-zero generation number
and tmpfs_inactive() to set the generation number of unlinked nodes
to zero.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Nov 24 17:16:29 2013 UTC (11 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.91: +11 -2 lines
Diff to previous 1.91 (colored)

- tmpfs_construct_node: prevent from the new node construction if the
  directory was removed.  Fixes the crash reported by Nicolas Joly.
- tmpfs_reclaim: avoid race by checking tn_links with the vnode locked.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Nov 23 21:53:27 2013 UTC (11 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.90: +4 -3 lines
Diff to previous 1.90 (colored)

tmpfs_reg_resize: use size_t.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Nov 23 16:35:32 2013 UTC (11 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.89: +51 -75 lines
Diff to previous 1.89 (colored)

- Simplify tmpfs_update(), eliminate tmpfs_note_t::tn_status and deferred
  timestamp updates.  Fix some incorrect updates and plug some missing ones.
  Should fix PR/48385.
- tmpfs_rmdir: avoid O(n) scan when the directory is not empty and whiteout
  entries were never added.

Revision 1.89 / (download) - annotate - [select for diffs], Thu Nov 21 14:39:09 2013 UTC (12 months ago) by rmind
Branch: MAIN
Changes since 1.88: +5 -5 lines
Diff to previous 1.88 (colored)

tmpfs_dir_getdotents: fix the recent regression, set the correct
d_fileno value for dot-dot.  Spotted by Pedro Martelletto, thanks!

Revision 1.88 / (download) - annotate - [select for diffs], Mon Nov 18 01:39:34 2013 UTC (12 months ago) by rmind
Branch: MAIN
Changes since 1.87: +6 -6 lines
Diff to previous 1.87 (colored)

Make tmpfs_node_t::tn_gen a 32-bit number, keep it in sync with tmpfs_fid_t.
Also, change tn_status to unsigned while here.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Nov 16 17:58:27 2013 UTC (12 months ago) by rmind
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

tmpfs_dir_getdents: avoid leaking kernel memory to the userspace.
From Pedro Martelletto.

XXX: regress/sys/fs/getdents should be a part of the test suite

Revision 1.86 / (download) - annotate - [select for diffs], Mon Nov 11 17:04:06 2013 UTC (12 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.85: +4 -3 lines
Diff to previous 1.85 (colored)

tmpfs_alloc_node: use cprng_fast64(), the old random(9) shall be removed.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Nov 10 12:46:19 2013 UTC (12 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Handle whiteout case in tmpfs_dir_detach() and tmpfs_unmount().

Revision 1.84 / (download) - annotate - [select for diffs], Sun Nov 10 03:20:20 2013 UTC (12 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

mark variable __diagused

Revision 1.83 / (download) - annotate - [select for diffs], Fri Nov 8 15:44:23 2013 UTC (12 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.82: +216 -161 lines
Diff to previous 1.82 (colored)

tmpfs: replace the broken tmpfs_dircookie() logic which uses the node
address truncated to 31 bits (required for 32-bit readdir compatibility,
e.g. linux32).  Instead, assign 2^31 range using the following logic:
- The first half of the 2^31 is assigned incrementally (the fast path).
- When exceeded, use the second half of 2^31, but manage with vmem(9).

It will require 2 billion files per-directory to trigger vmem(9) usage.
Also, while here, add some fixes for tmpfs_unmount().

Should fix PR/47739, PR/47480, PR/46088 and PR/41068.
Thanks to wiz@ for stress testing.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Nov 1 15:38:45 2013 UTC (12 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.81: +10 -5 lines
Diff to previous 1.81 (colored)

tmpfs: fix the zero-length symlink target case as NetBSD supports them.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Oct 31 00:59:17 2013 UTC (12 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.80: +7 -7 lines
Diff to previous 1.80 (colored)

tmpfs_alloc_node: it is less error-prone to store the link path with
the NIL terminator included.  Adjust tmpfs_readlink() to exclude NIL.
Also, remove the check for zero-length and add some asserts.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Oct 4 15:14:11 2013 UTC (13 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.79: +3 -6 lines
Diff to previous 1.79 (colored)

- tmpfs_remove: check 'appendable' flag for the parent directory as well.
  Patch from Pedro Martelletto.
- tmpfs_dir_detach: remove missleading check.
- tmpfs_link: remove unused variable.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:20 2012 UTC (2 years, 7 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.77: +12 -15 lines
Diff to previous 1.77 (colored)

sync with head

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:37 2012 UTC (2 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.78: +11 -14 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

sync to latest -current.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:50 2012 UTC (2 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.78: +11 -14 lines
Diff to previous 1.78 (colored)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:24 2011 UTC (3 years ago) by tls
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Aug 27 15:32:28 2011 UTC (3 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.76: +16 -4 lines
Diff to previous 1.76 (colored)

Finish and enable whiteout support for tmpfs:

- Enable VOP tmpfs_whiteout().
- Support ISWHITEOUT in tmpfs_alloc_file().
- Support DOWHITEOUT in tmpfs_remove() and tmpfs_rmdir().
- Make rmdir on a directory containing whiteouts working.

Should fix PR #35112 (tmpfs doesn't play well with unionfs).

Revision 1.76 / (download) - annotate - [select for diffs], Thu Jun 30 00:37:07 2011 UTC (3 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.75: +10 -2 lines
Diff to previous 1.75 (colored)

Backout previous.  May be I need more coffee.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jun 30 00:09:26 2011 UTC (3 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.74: +4 -12 lines
Diff to previous 1.74 (colored)

- Use << PAGE_SHIFT rather than calling round_page again.
- No need to call uao_dropswap_range() here since uao_dropswap()
  is already called for each pages by uvm_vnp_setsize().

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:17 2011 UTC (3 years, 5 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.72: +20 -12 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 16 09:21:02 2011 UTC (3 years, 5 months ago) by hannken
Branch: MAIN
Changes since 1.73: +4 -7 lines
Diff to previous 1.73 (colored)

Rename uvm_vnp_zerorange(struct vnode *, off_t, size_t) to
ubc_zerorange(struct uvm_object *, off_t, size_t, int) changing
the first argument to an uvm_object and adding a flags argument.

Modify tmpfs_reg_resize() to zero the backing store (aobj) instead
of the vnode.  Ubc_purge() no longer panics when unmounting tmpfs.

Keep uvm_vnp_zerorange() until the next kernel version bump.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:54 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.72: +18 -7 lines
Diff to previous 1.72 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:24 2011 UTC (3 years, 5 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.62: +415 -575 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with HEAD.

Revision 1.56.4.9 / (download) - annotate - [select for diffs], Tue May 31 03:04:59 2011 UTC (3 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.8: +409 -574 lines
Diff to previous 1.56.4.8 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored)

sync with head

Revision 1.56.4.8 / (download) - annotate - [select for diffs], Tue May 31 01:51:58 2011 UTC (3 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.7: +11 -8 lines
Diff to previous 1.56.4.7 (colored) to branchpoint 1.56 (colored)

tmpfs_alloc_vp: perform lock sharing only for VREG.

Revision 1.56.4.7 / (download) - annotate - [select for diffs], Mon May 30 14:57:48 2011 UTC (3 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.6: +11 -8 lines
Diff to previous 1.56.4.6 (colored) to branchpoint 1.56 (colored)

- Amend getnewvnode(9) to take the lock for sharing, not a vnode.
- Update tmpfs to perform vnode and UVM object lock sharing correctly.

Revision 1.72 / (download) - annotate - [select for diffs], Sun May 29 22:43:32 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.71: +5 -5 lines
Diff to previous 1.71 (colored)

Fix non-DEBUG build.

Revision 1.71 / (download) - annotate - [select for diffs], Sun May 29 22:29:06 2011 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.70: +187 -114 lines
Diff to previous 1.70 (colored)

- Rework and document inode reference counting.  Also document inode life
  cycle (destruction part).  Perform link counting in tmpfs_dir_attach()
  and tmpfs_dir_detach(), instead of alloc/free and arbitrary places.
  Fixes PR/44285, PR/44288, PR/44657 and likely PR/42484.

- Fix the race between the lookup and inode destruction.  Fixes PR/43167
  and its duplicates PR/40088, PR/40757.

- Improve tmpfs_rename() locking a little, fix kqueue event notifications
  and also fix PR/43617.  Add simplistic tmpfs_parentcheck_p(); to be
  expanded and used for further rename() locking fixes.

- Cache directory entry "hint" in the tmpfs node, add tmpfs_dir_cached(),
  and thus avoid unnecessary lookup in tmpfs_remove() and tmpfs_rmdir().

- Set correct _PC_FILESIZEBITS value in tmpfs_pathconf().  Fixes PR/43576.

- Few minor fixes.

Revision 1.70 / (download) - annotate - [select for diffs], Wed May 25 02:03:22 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

tmpfs_update: comment out assert for now.

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 25 00:06:45 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

tmpfs_dir_lookup: use 'name' variable in memcmp() as intended; fix warning.

Revision 1.68 / (download) - annotate - [select for diffs], Tue May 24 23:16:16 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.67: +74 -74 lines
Diff to previous 1.67 (colored)

- tmpfs_lookup: cache (cnp->cn_flags & ISLASTCN) in const bool; de-indent.
- Group tmpfs_{alloc,free}_dirent() with other dirent routines.

No functional changes.

Revision 1.67 / (download) - annotate - [select for diffs], Tue May 24 20:17:49 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.66: +204 -383 lines
Diff to previous 1.66 (colored)

- Describe some locking.
- Add VOP argument comments, add some asserts.
- Update/fix/remove outdated/missleading comments.
- Clean up, de-indent, KNF, misc.

No functional changes intended.

Revision 1.66 / (download) - annotate - [select for diffs], Tue May 24 14:18:03 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

tmpfs_free_node: comment out assert, which can fire e.g. on shutdown.

Revision 1.65 / (download) - annotate - [select for diffs], Tue May 24 01:09:47 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.64: +31 -74 lines
Diff to previous 1.64 (colored)

- tmpfs_alloc_node/tmpfs_free_node: move inode limiting into tmpfs_node_get()
  and tmpfs_node_put(), update outdated/wrong comments and move/add asserts.
- tmpfs_mount: check for the version of arguments a bit earlier.

Revision 1.56.4.6 / (download) - annotate - [select for diffs], Sun May 22 04:29:04 2011 UTC (3 years, 6 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.5: +3 -2 lines
Diff to previous 1.56.4.5 (colored) to branchpoint 1.56 (colored)

Fix vnode interlock sharing.

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 22 04:20:50 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.63: +17 -33 lines
Diff to previous 1.63 (colored)

tmpfs_alloc_vp:
- Do not check for vn_lock(9) error, if LK_RETRY.
- Fix/improve comments.

Revision 1.56.4.5 / (download) - annotate - [select for diffs], Thu May 19 03:43:02 2011 UTC (3 years, 6 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.4: +7 -3 lines
Diff to previous 1.56.4.4 (colored) to branchpoint 1.56 (colored)

Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.56.4.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:06 2011 UTC (3 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.3: +7 -2 lines
Diff to previous 1.56.4.3 (colored) to branchpoint 1.56 (colored)

sync with head

Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 1 17:40:54 2011 UTC (3 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.62: +9 -4 lines
Diff to previous 1.62 (colored)

Make zero length symlinks work on tmpfs.

Fixes PR #43843 (tmpfs dies with kassert panic for 0 length symlink target)

Revision 1.56.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:09 2011 UTC (3 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.2: +41 -37 lines
Diff to previous 1.56.4.2 (colored) to branchpoint 1.56 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 13 13:35:12 2011 UTC (3 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.61: +40 -33 lines
Diff to previous 1.61 (colored)

Add some support for unionfs (not built by default).  It's still
missing at least opaque directory support, but until someone figures
out how that should work on ffs (see PR kern/kern/44383), there's
no point in trying to figure out how it should work here.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 30 10:43:04 2010 UTC (3 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored)

Abolish the SAVENAME and HASBUF flags. There is now always a buffer,
so the path in a struct componentname is now always valid during VOP
calls.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Nov 30 10:30:00 2010 UTC (3 years, 11 months ago) by dholland
Branch: MAIN
Changes since 1.59: +2 -4 lines
Diff to previous 1.59 (colored)

Abolish struct componentname's cn_pnbuf. Use the path buffer in the
pathbuf object passed to namei as work space instead. (For now a pnbuf
pointer appears in struct nameidata, to support certain unclean things
that haven't been fixed yet, but it will be going away in the future.)

This removes the need for the SAVENAME and HASBUF namei flags.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:22 2010 UTC (4 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.56: +42 -86 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Sync with HEAD.

Revision 1.46.10.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:36 2010 UTC (4 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.46.10.5: +42 -86 lines
Diff to previous 1.46.10.5 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jul 21 17:52:11 2010 UTC (4 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

Make holding v_interlock mandatory for callers of vget().

Announced some time ago on tech-kern.

Revision 1.56.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:51 2010 UTC (4 years, 4 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56.4.1: +41 -85 lines
Diff to previous 1.56.4.1 (colored) to branchpoint 1.56 (colored)

sync with head

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jul 2 03:29:47 2010 UTC (4 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

tmpfs_lookup: add comment, de-ident main path.  No functional change.
tmpfs_dir_attach: add assert.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jun 22 18:32:08 2010 UTC (4 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.56: +40 -84 lines
Diff to previous 1.56 (colored)

Replace tmpfs_pool custom allocator code with a simpler layer for memory
accounting.  Use wired memory (which can be limited) for meta-data, and
kmem(9) for string allocations.

Close PR/31944.  Fix PR/38361 while here.  OK ad@.

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:08 2010 UTC (4 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.46.10.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:14 2010 UTC (4 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.46.10.4: +18 -25 lines
Diff to previous 1.46.10.4 (colored) to branchpoint 1.46 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 11 09:59:41 2009 UTC (5 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.55: +18 -25 lines
Diff to previous 1.55 (colored)

Simplify tmpfs_itimes() and use vfs_timestamp().  Also, replace unnecessary
kmem_zalloc()s with kmem_alloc()s.

Revision 1.46.10.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:00 2009 UTC (5 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.46.10.3: +48 -23 lines
Diff to previous 1.46.10.3 (colored) to branchpoint 1.46 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Thu Sep 3 11:22:05 2009 UTC (5 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

"kauth_action_t = KAUTH_VNODE_WRITE_FLAGS;" must be C**.  However,
we still use plain ISO C, so additionally supply the variable name.
Compile-tested only, but at least that's some testing.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Sep 3 04:45:28 2009 UTC (5 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.53: +48 -23 lines
Diff to previous 1.53 (colored)

Implement the vnode scope and adapt tmpfs to use it.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/07/04/msg005404.html

Revision 1.46.10.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:47 2009 UTC (5 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.46.10.2: +6 -10 lines
Diff to previous 1.46.10.2 (colored) to branchpoint 1.46 (colored)

sync with head

Revision 1.48.10.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:55 2009 UTC (5 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.48: +21 -40 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.53 / (download) - annotate - [select for diffs], Thu May 7 19:30:30 2009 UTC (5 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.52: +6 -10 lines
Diff to previous 1.52 (colored)

Extract the open-coded authorization logic for chtimes() from various
file-systems and put it in a single function, genfs_can_chtimes().

This also makes UDF follow the same policy as all other file-systems.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004951.html

Revision 1.46.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:44 2009 UTC (5 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.46.10.1: +46 -46 lines
Diff to previous 1.46.10.1 (colored) to branchpoint 1.46 (colored)

sync with head.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:58 2009 UTC (5 years, 6 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.48: +17 -32 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 22 22:57:09 2009 UTC (5 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

Per discussion on tech-kern@:

  - Replace use of label/goto with returns

  - Rename, change prototype of, and move functions from vfs_subr.c to
    genfs_vnops.c

Revision 1.51 / (download) - annotate - [select for diffs], Mon Apr 20 18:06:27 2009 UTC (5 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.50: +12 -28 lines
Diff to previous 1.50 (colored)

Refactor some duplicated file-system code.

Proposed and received no objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/04/18/msg004843.html

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Sun Apr 12 02:22:24 2009 UTC (5 years, 7 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Pull up following revision(s) (requested by markd in ticket #689):
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.50
For chown make auth checks consistent with UFS. Fixes PR kern/40933.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Apr 11 11:59:04 2009 UTC (5 years, 7 months ago) by markd
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

For chown make auth checks consistent with UFS. Fixes PR kern/40933.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Apr 10 03:40:05 2009 UTC (5 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.48: +7 -6 lines
Diff to previous 1.48 (colored)

- tmpfs_dir_lookup: simplify.
- add some assertions.

Revision 1.46.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (6 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.46.6.1: +29 -14 lines
Diff to previous 1.46.6.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Sync with HEAD.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:29 2008 UTC (6 years, 4 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.47: +31 -16 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with head.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:49 2008 UTC (6 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.47: +31 -16 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jun 19 19:03:44 2008 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Changes since 1.47: +31 -16 lines
Diff to previous 1.47 (colored)

- setting the birthdate is valid in setattr.
- don't call nanotime if not needed.
- don't call tempfs_update() if tempfs_chtimes succeeded, because it just did.

Revision 1.46.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:06 2008 UTC (6 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.46: +2 -9 lines
Diff to previous 1.46 (colored)

Sync with HEAD.

Revision 1.46.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:03 2008 UTC (6 years, 6 months ago) by yamt
Branch: yamt-pf42
Changes since 1.46: +2 -9 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

sync with head.

Revision 1.46.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:21 2008 UTC (6 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.46: +2 -9 lines
Diff to previous 1.46 (colored)

sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (6 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.46: +2 -9 lines
Diff to previous 1.46 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:57 2008 UTC (6 years, 8 months ago) by matt
Branch: matt-armv6
Changes since 1.36.2.3: +5 -25 lines
Diff to previous 1.36.2.3 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

sync with HEAD

Revision 1.38.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:40 2008 UTC (6 years, 9 months ago) by mjf
Branch: mjf-devfs
Changes since 1.38.4.3: +96 -131 lines
Diff to previous 1.38.4.3 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.21.4.10 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:53 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.9: +4 -4 lines
Diff to previous 1.21.4.9 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Feb 6 11:23:54 2008 UTC (6 years, 9 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

u_int is not a C99 standard type, so spell it out completely as
unsigned int.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Feb 6 11:22:12 2008 UTC (6 years, 9 months ago) by jmmv
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Drop trailing whitespace.

Revision 1.21.4.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:03 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.8: +3 -23 lines
Diff to previous 1.21.4.8 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 24 17:32:54 2008 UTC (6 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.43: +3 -23 lines
Diff to previous 1.43 (colored)

specfs changes for PR kern/37717 (raidclose() is no longer called on
shutdown). There are still problems with device access and a PR will be
filed.

- Kill checkalias(). Allow multiple vnodes to reference a single device.

- Don't play dangerous tricks with block vnodes to ensure that only one
  vnode can describe a block device. Instead, prohibit concurrent opens of
  block devices. As a bonus remove the unreliable code that prevents
  multiple file system mounts on the same device. It's no longer needed.

- Track opens by vnode and by device. Issue cdev_close() when the last open
  goes away, instead of abusing vnode::v_usecount to tell if the device is
  open.

Revision 1.21.4.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:55 2008 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.7: +99 -115 lines
Diff to previous 1.21.4.7 (colored) to branchpoint 1.21 (colored)

sync with head

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:52 2008 UTC (6 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.36.2.2: +48 -56 lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored)

sync with HEAD

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:39 2008 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.42: +97 -112 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:46 2008 UTC (6 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.42: +97 -112 lines
Diff to previous 1.42 (colored)

Merge vmlocking2 to head.

Revision 1.38.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:49 2007 UTC (6 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.38.4.2: +4 -5 lines
Diff to previous 1.38.4.2 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.41.2.8 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:34 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.41.2.7: +4 -5 lines
Diff to previous 1.41.2.7 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

Sync with head.

Revision 1.41.2.7 / (download) - annotate - [select for diffs], Sat Dec 15 00:51:47 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.41.2.6: +16 -16 lines
Diff to previous 1.41.2.6 (colored) to branchpoint 1.41 (colored)

tmpfs_reg_resize: drop swapslots after resizing to work around a panic.
It may not be necessary to drop the swapslots at this point.

Revision 1.41.2.6 / (download) - annotate - [select for diffs], Sat Dec 15 00:17:32 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.41.2.5: +3 -3 lines
Diff to previous 1.41.2.5 (colored) to branchpoint 1.41 (colored)

Fix accounting problem that allowed a tmpfs to be filled beyond its limit
when running multithreaded.

Revision 1.41.2.5 / (download) - annotate - [select for diffs], Thu Dec 13 16:21:58 2007 UTC (6 years, 11 months ago) by yamt
Branch: vmlocking2
Changes since 1.41.2.4: +7 -7 lines
Diff to previous 1.41.2.4 (colored) to branchpoint 1.41 (colored)

don't leak linkcount on errors.

Revision 1.41.2.4 / (download) - annotate - [select for diffs], Wed Dec 12 17:38:40 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.41.2.3: +3 -3 lines
Diff to previous 1.41.2.3 (colored) to branchpoint 1.41 (colored)

Minor corrections to previous.

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Wed Dec 12 17:33:15 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.41.2.2: +16 -13 lines
Diff to previous 1.41.2.2 (colored) to branchpoint 1.41 (colored)

- Don't use LK_RETRY in tmpfs_alloc_vp().
- Reduce cosmetic diffs to head.

Revision 1.35.6.7 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:12 2007 UTC (6 years, 11 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.35.6.6: +4 -5 lines
Diff to previous 1.35.6.6 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:45 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.41: +4 -5 lines
Diff to previous 1.41 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:21 2007 UTC (6 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.38.4.1: +3 -3 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 14:42:25 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.41.2.1: +11 -20 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored)

Reduce coverage of the per-mount lock by using atomic ops.

Revision 1.21.4.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:11 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.6: +3 -3 lines
Diff to previous 1.21.4.6 (colored) to branchpoint 1.21 (colored)

sync with head

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:10 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.41: +92 -101 lines
Diff to previous 1.41 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.35.6.6 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:54 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.35.6.5: +3 -3 lines
Diff to previous 1.35.6.5 (colored) to branchpoint 1.35 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:54 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:31 2007 UTC (7 years ago) by mjf
Branch: mjf-devfs
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Sync with HEAD.

Revision 1.35.6.5 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:55 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.35.6.4: +98 -90 lines
Diff to previous 1.35.6.4 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Nov 10 03:36:16 2007 UTC (7 years ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.39: +96 -88 lines
Diff to previous 1.39 (colored)

Back out the tmpfs changes; there appears to be a bug lurking.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:58 2007 UTC (7 years ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.36.2.1: +90 -98 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored)

sync with -HEAD

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:21 2007 UTC (7 years ago) by matt
Branch: matt-armv6
Changes since 1.36: +51 -40 lines
Diff to previous 1.36 (colored)

sync with HEAD

Revision 1.35.6.4 / (download) - annotate - [select for diffs], Tue Nov 6 21:16:24 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.35.6.3: +90 -98 lines
Diff to previous 1.35.6.3 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Nov 6 19:50:55 2007 UTC (7 years ago) by ad
Branch: MAIN
Changes since 1.38: +90 -98 lines
Diff to previous 1.38 (colored)

Merge from vmlocking.

Revision 1.21.4.6 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:15 2007 UTC (7 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.5: +51 -40 lines
Diff to previous 1.21.4.5 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.35.6.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:22 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.35.6.2: +5 -4 lines
Diff to previous 1.35.6.2 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.34.4.11 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:07 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.34.4.10: +3 -5 lines
Diff to previous 1.34.4.10 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Sync with head.

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:35 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-x86pmap
Changes since 1.36.4.1: +5 -4 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:25 2007 UTC (7 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.37: +5 -4 lines
Diff to previous 1.37 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.34.4.10 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:17 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.34.4.9: +9 -11 lines
Diff to previous 1.34.4.9 (colored) to branchpoint 1.34 (colored)

Sync with head.

Revision 1.34.4.9 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:21 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.34.4.8: +48 -38 lines
Diff to previous 1.34.4.8 (colored) to branchpoint 1.34 (colored)

Sync with head.

Revision 1.34.4.8 / (download) - annotate - [select for diffs], Mon Oct 8 20:19:29 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.34.4.7: +33 -39 lines
Diff to previous 1.34.4.7 (colored) to branchpoint 1.34 (colored)

- Don't leave nodes dangling in order to keep track of the inode generation
  number. Free them back to the pool as soon as the referenced file becomes
  unused. Using arc4random() for the generation and ino_t based off the
  node's in-core address is just about as as good as a disk-based file
  system is going to give.
- Add assertion to catch empty directories with linkcount > 1 being freed.
  This fires frequently but I haven't tracked the bug down yet..
- Use kmem_alloc.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:29:51 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-x86pmap
Changes since 1.36: +48 -38 lines
Diff to previous 1.36 (colored)

sync with head.

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:55 2007 UTC (7 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.35.6.1: +48 -38 lines
Diff to previous 1.35.6.1 (colored) to branchpoint 1.35 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 24 00:42:15 2007 UTC (7 years, 2 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.36: +48 -38 lines
Diff to previous 1.36 (colored)

Avoid stack allocation of large dirent structures in foo_readdir().

Revision 1.34.4.7 / (download) - annotate - [select for diffs], Tue Sep 18 16:06:13 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.34.4.6: +19 -11 lines
Diff to previous 1.34.4.6 (colored) to branchpoint 1.34 (colored)

tmpfs_alloc_vp: deal with vget() failure. Another thread may be reclaiming
the vnode.

Revision 1.34.4.6 / (download) - annotate - [select for diffs], Sun Sep 16 18:32:36 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.34.4.5: +15 -29 lines
Diff to previous 1.34.4.5 (colored) to branchpoint 1.34 (colored)

Fix another minor concurrency problem.

Revision 1.21.4.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:35 2007 UTC (7 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.4: +9 -7 lines
Diff to previous 1.21.4.4 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.34.4.5 / (download) - annotate - [select for diffs], Wed Aug 22 20:24:52 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.34.4.4: +7 -17 lines
Diff to previous 1.34.4.4 (colored) to branchpoint 1.34 (colored)

Fix some more concurrency problems.

Revision 1.34.4.4 / (download) - annotate - [select for diffs], Tue Aug 21 20:01:31 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.34.4.3: +49 -33 lines
Diff to previous 1.34.4.3 (colored) to branchpoint 1.34 (colored)

- Add locking around tmpfs shared data structures and mark it MP safe.
  It's enough to last for about 45m of fsx+postmark, but it doesn't
  survive SGI fsstress yet.
- Close a race where multiple vnodes could maybe have been allocated
  for a tmpnode with linkcount > 1.

Revision 1.34.4.3 / (download) - annotate - [select for diffs], Mon Aug 20 21:26:11 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.34.4.2: +8 -7 lines
Diff to previous 1.34.4.2 (colored) to branchpoint 1.34 (colored)

Sync with HEAD.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:01 2007 UTC (7 years, 3 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.35: +8 -7 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Thu Aug 9 02:37:17 2007 UTC (7 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.35: +8 -7 lines
Diff to previous 1.35 (colored)

Sync with HEAD.

Revision 1.36.6.2 / (download) - annotate - [select for diffs], Mon Aug 6 16:08:56 2007 UTC (7 years, 3 months ago) by pooka
Branch: matt-mips64
Changes since 1.36.6.1: +1343 -0 lines
Diff to previous 1.36.6.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

When resizing a node, first drop extra pages and zero tail, and only
then set the new size.  Otherwise zerolen will always be, well, 0.

Revision 1.36.6.1, Mon Aug 6 16:08:55 2007 UTC (7 years, 3 months ago) by pooka
Branch: matt-mips64
Changes since 1.36: +0 -1343 lines
FILE REMOVED

file tmpfs_subr.c was added on branch matt-mips64 on 2007-08-06 16:08:56 +0000

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 6 16:08:55 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6
Changes since 1.35: +8 -7 lines
Diff to previous 1.35 (colored)

When resizing a node, first drop extra pages and zero tail, and only
then set the new size.  Otherwise zerolen will always be, well, 0.

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:34 2007 UTC (7 years, 4 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with head.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:50 2007 UTC (7 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.34.4.2 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:14 2007 UTC (7 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.34.4.1: +6 -4 lines
Diff to previous 1.34.4.1 (colored) to branchpoint 1.34 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:57:48 2007 UTC (7 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored)

Compile fixes.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:14 2007 UTC (7 years, 8 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.32: +8 -8 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.21.4.4 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:00 2007 UTC (7 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.3: +16 -15 lines
Diff to previous 1.21.4.3 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 22 06:37:00 2007 UTC (7 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

TRUE -> true, FALSE -> false

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:04 2007 UTC (7 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.23.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:05 2007 UTC (7 years, 10 months ago) by ad
Branch: newlock2
Changes since 1.23.2.1: +10 -9 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 4 15:42:37 2007 UTC (7 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.31: +8 -8 lines
Diff to previous 1.31 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 2 11:18:56 2007 UTC (7 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

Add KAUTH_SYSTEM_CHSYSFLAGS so we can get rid of the last three
securelevel references (ufs, ext2fs, tmpfs).

Intentionally undocumented.

Revision 1.21.4.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:01 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.2: +54 -21 lines
Diff to previous 1.21.4.2 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.23.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (7 years, 11 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.23.4.1: +47 -15 lines
Diff to previous 1.23.4.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (8 years ago) by ad
Branch: newlock2
Changes since 1.23: +43 -11 lines
Diff to previous 1.23 (colored)

Sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:37 2006 UTC (8 years ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

__unused removal on arguments; approved by core.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 9 15:06:03 2006 UTC (8 years ago) by jmmv
Branch: MAIN
Changes since 1.28: +39 -7 lines
Diff to previous 1.28 (colored)

Audit kqueue notifications.  The reference behavior is taken from MFS and
is represented in the regression tests.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Nov 5 19:40:31 2006 UTC (8 years ago) by jmmv
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Randomly initialize the node's generation to make file handles less
predictable.  This solves a problem that may appear when serving a tmpfs
over NFS: if the server reboots, newly allocated files should have
different file handles; otherwise the remote clients could access files
they were not supposed to touch.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Nov 5 16:59:18 2006 UTC (8 years ago) by jmmv
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Truncate directory cookies to 31 bits to avoid problems exposed in Linux
binaries which cast the returned values to 64-bits and fail due to sign
expansion.  More details are provided in the big comment in tmpfs.h that
describes how the new tmpfs_dircookie works.

This is a rather ugly hack that shall be fixed with a cleaner solution,
but this resolves the problem in an effective way.

Fixes kern PR/32034.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 30 15:11:01 2006 UTC (8 years ago) by jmmv
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Grr... cvs diff scrolled too much and I didn't notice there were some
unwanted changes in this file.  Revert them; sorry.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Oct 30 15:09:47 2006 UTC (8 years ago) by jmmv
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

When renaming a file, we have to modify the mtime of the directory holding
it, not the mtime of the file itself.  This fixes the problems exposed when
unpacking software under a tmpfs and trying to build it because dependencies
were not calculated properly (e.g. autoconf 2.60 as reported by tls@).

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (8 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

sync with head

Revision 1.24 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:06 2006 UTC (8 years, 2 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.17: +85 -75 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:13 2006 UTC (8 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18.2.3: +4 -2 lines
Diff to previous 1.18.2.3 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 3 06:49:30 2006 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

comment out empty code

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:34 2006 UTC (8 years, 3 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18.2.2: +11 -12 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored)

sync with head

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (8 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.21: +11 -12 lines
Diff to previous 1.21 (colored)

Use the LWP cached credentials where sane.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:55 2006 UTC (8 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18.2.1: +10 -12 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

sync with head.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:36 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.1: +1307 -0 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:14 2006 UTC (8 years, 5 months ago) by chap
Branch: chap-midi
Changes since 1.20: +10 -12 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with head.

Revision 1.21.4.1, Wed Jun 7 22:33:39 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21: +0 -1307 lines
FILE REMOVED

file tmpfs_subr.c was added on branch yamt-lazymbuf on 2006-06-21 15:09:36 +0000

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:39 2006 UTC (8 years, 5 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Branch point for: yamt-lazymbuf
Changes since 1.20: +10 -12 lines
Diff to previous 1.20 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.17.6.4 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:05 2006 UTC (8 years, 5 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.17.6.3: +29 -23 lines
Diff to previous 1.17.6.3 (colored) next main 1.18 (colored)

Sync with head.

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (8 years, 6 months ago) by tron
Branch: peter-altq
Changes since 1.18: +29 -23 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (8 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18: +29 -23 lines
Diff to previous 1.18 (colored)

sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 15 00:05:16 2006 UTC (8 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

kauth fallout

Revision 1.19 / (download) - annotate - [select for diffs], Sun May 14 21:31:52 2006 UTC (8 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.18: +28 -23 lines
Diff to previous 1.18 (colored)

integrate kauth.

Revision 1.17.6.3 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (8 years, 7 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.17.6.2: +46 -41 lines
Diff to previous 1.17.6.2 (colored)

Sync with head.

Revision 1.18.4.3 / (download) - annotate - [select for diffs], Tue Apr 18 12:03:18 2006 UTC (8 years, 7 months ago) by elad
Branch: elad-kernelauth
Changes since 1.18.4.2: +15 -14 lines
Diff to previous 1.18.4.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

adapt to kauth, pointed out by yamt@, thanks!

Revision 1.18.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:23:39 2006 UTC (8 years, 8 months ago) by elad
Branch: elad-kernelauth
Changes since 1.18.4.1: +6 -6 lines
Diff to previous 1.18.4.1 (colored) to branchpoint 1.18 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:31:33 2006 UTC (8 years, 8 months ago) by elad
Branch: elad-kernelauth
Changes since 1.18: +15 -11 lines
Diff to previous 1.18 (colored)

Adapt to kernel authorization KPI.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (8 years, 9 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.17: +46 -41 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 16 14:57:50 2006 UTC (8 years, 9 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.17: +46 -41 lines
Diff to previous 1.17 (colored)

Do not use unnamed structures/unions without instances; they break the
build under vax because of gcc 2.95.  Found by he@.

Revision 1.17.6.2 / (download) - annotate - [select for diffs], Sun Feb 5 11:42:39 2006 UTC (8 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.17.6.1: +8 -11 lines
Diff to previous 1.17.6.1 (colored)

In the *itimes functions, just call getnanotime() at the start of
the function and use the result if needed, rather than the previous
conditional calls/assignments method.  The code is clearer this way,
and benchmarks at about the same speed.

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:49 2006 UTC (8 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.17: +9 -8 lines
Diff to previous 1.17 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (8 years, 11 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

merge ktrace-lwp.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:11 2005 UTC (8 years, 11 months ago) by christos
Branch: ktrace-lwp
Changes since 1.13.2.3: +13 -33 lines
Diff to previous 1.13.2.3 (colored) next main 1.14 (colored)

Sync with head.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:29 2005 UTC (8 years, 11 months ago) by yamt
Branch: yamt-readahead
Changes since 1.14: +11 -27 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 28 22:28:36 2005 UTC (8 years, 11 months ago) by dan
Branch: MAIN
CVS Tags: yamt-readahead-base3, ktrace-lwp-base
Changes since 1.15: +6 -0 lines
Diff to previous 1.15 (colored)

take into account memory used for file cache pages, and wired pages,
when calculating potential free space

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 28 22:06:20 2005 UTC (8 years, 11 months ago) by dan
Branch: MAIN
Changes since 1.14: +5 -27 lines
Diff to previous 1.14 (colored)

simplify calculation of free swap space using uvm-exported statistics,
with thanks to yamt@ for useful hints.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Sat Nov 12 17:00:57 2005 UTC (9 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.2: +6 -6 lines
Diff to previous 1.13.2.2 (colored)

Adapt to branch

Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 11 15:50:57 2005 UTC (9 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base
Branch point for: yamt-readahead
Changes since 1.13: +2 -6 lines
Diff to previous 1.13 (colored)

- ignore truncation for VCHR/VBLK/VFIFO as it used to be
  before yamt-vop merge.  PR/32049 from Atsushi Onoe.
- reject setattr which attempts to change size of VLNK/VSOCK.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (9 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.1: +1318 -0 lines
Diff to previous 1.13.2.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.13.2.1, Tue Nov 8 23:04:03 2005 UTC (9 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.13: +0 -1318 lines
FILE REMOVED

file tmpfs_subr.c was added on branch ktrace-lwp on 2005-11-10 14:09:44 +0000

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 8 23:04:03 2005 UTC (9 years ago) by yamt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.12: +26 -3 lines
Diff to previous 1.12 (colored)

tmpfs_reg_resize: drop swap slots on truncation.
fix a problem pointed by jmmv@.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:59 2005 UTC (9 years ago) by yamt
Branch: MAIN
Changes since 1.11: +65 -10 lines
Diff to previous 1.11 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Sat Oct 29 17:28:19 2005 UTC (9 years ago) by yamt
Branch: yamt-vop
Changes since 1.11.2.1: +6 -8 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

as tmpfs_update never fails, make it return void.
suggested by Chuck Silvers.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 07:13:14 2005 UTC (9 years, 1 month ago) by yamt
Branch: yamt-vop
Changes since 1.11: +66 -9 lines
Diff to previous 1.11 (colored)

adapt tmpfs.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 30 14:29:19 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

Explicitly initialize the tn_lockf field.  I expect problems in some
situations otherwise...

Revision 1.10 / (download) - annotate - [select for diffs], Wed Sep 28 23:42:14 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.9: +38 -2 lines
Diff to previous 1.9 (colored)

tmpfs_getattr: return up-to-date timestamps.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 27 20:35:33 2005 UTC (9 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.8: +45 -23 lines
Diff to previous 1.8 (colored)

Some style fixes in comments.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 23 15:36:15 2005 UTC (9 years, 2 months ago) by jmmv
Branch: MAIN
Changes since 1.7: +97 -3 lines
Diff to previous 1.7 (colored)

Kill the tmpfs(9) manual page; it was just documenting internal details of
tmpfs' "API" and was already rotting.

Instead, merge all the relevant comments into the code.  This includes
acknowledgements to Google's Summer of Code 2005 program (they were in the
AUTHORS section of tmpfs(9) before), so all the files need to be changed
to include this sentence alongside the title.  (Note that this was not a
requirement of the program.)

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 17 10:28:26 2005 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

fix buffer overrun for symbolic links.  PR/31325.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 16 00:18:48 2005 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

tmpfs_dir_getdotdotdent: correct fileid.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 15 12:34:35 2005 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.4: +58 -44 lines
Diff to previous 1.4 (colored)

change the way to handle directory "offsets" so that
they won't be changed when removing entries in the directory.
some applications like cvs rely on this.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 13 14:29:18 2005 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.3: +4 -44 lines
Diff to previous 1.3 (colored)

- don't waste/leak kva.
- implement getpages/putpages.  support mmap.
- eliminate meaningless memcpy.
- ubcify.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 12 16:55:01 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.2: +3 -5 lines
Diff to previous 1.2 (colored)

convert to use it nanotime, but don't call it unless it is necessary.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 10 22:28:57 2005 UTC (9 years, 2 months ago) by jmmv
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

wiz@ remembers that the preferred way to spell file-system in NetBSD is
file system.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 10 19:20:51 2005 UTC (9 years, 2 months ago) by jmmv
Branch: MAIN

Initial addition of tmpfs, an efficient memory file-system.  This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).

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.




CVSweb <webmaster@jp.NetBSD.org>