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.102.8.1 / (download) - annotate - [select for diffs], Tue Aug 1 15:32:23 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.102: +7 -2 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.34.6.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1872):

	sys/fs/tmpfs/tmpfs_subr.c: revision 1.116
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.117

tmpfs: Refuse sizes that overflow round_page.

tmpfs: Assert no arithmetic overflow in directory node tn_size.
Need >2^57 directory entries before this is a problem.  If we created
a million per second, this would take over 4000 years.

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Tue Aug 1 15:30:40 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-9
Changes since 1.104: +7 -2 lines
Diff to previous 1.104 (colored) next main 1.105 (colored) to selected 1.34.6.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1691):

	sys/fs/tmpfs/tmpfs_subr.c: revision 1.116
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.117

tmpfs: Refuse sizes that overflow round_page.

tmpfs: Assert no arithmetic overflow in directory node tn_size.
Need >2^57 directory entries before this is a problem.  If we created
a million per second, this would take over 4000 years.

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Tue Aug 1 15:29:23 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.114: +7 -2 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.34.6.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #289):

	sys/fs/tmpfs/tmpfs_subr.c: revision 1.116
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.117

tmpfs: Refuse sizes that overflow round_page.

tmpfs: Assert no arithmetic overflow in directory node tn_size.
Need >2^57 directory entries before this is a problem.  If we created
a million per second, this would take over 4000 years.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Apr 29 08:15:13 2023 UTC (11 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.116: +4 -2 lines
Diff to previous 1.116 (colored) to selected 1.34.6.1 (colored)

tmpfs: Assert no arithmetic overflow in directory node tn_size.

Need >2^57 directory entries before this is a problem.  If we created
a million per second, this would take over 4000 years.

Revision 1.116 / (download) - annotate - [select for diffs], Sat Apr 29 08:13:27 2023 UTC (11 months ago) by riastradh
Branch: MAIN
Changes since 1.115: +5 -2 lines
Diff to previous 1.115 (colored) to selected 1.34.6.1 (colored)

tmpfs: Refuse sizes that overflow round_page.

Reported-by: syzbot+8dbeee84de15f86df65b@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=4a27b9fe074f8d4b0afbe22969339b8dfdb157e8

Revision 1.115 / (download) - annotate - [select for diffs], Sat Apr 29 06:29:55 2023 UTC (11 months ago) by riastradh
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) to selected 1.34.6.1 (colored)

tmpfs: Nix trailing whitespace.  No functional change intended.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Oct 20 03:08:17 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.113: +3 -19 lines
Diff to previous 1.113 (colored) to selected 1.34.6.1 (colored)

Overhaul of the EVFILT_VNODE kevent(2) filter:

- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Sep 5 16:30:12 2020 UTC (3 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.112: +5 -3 lines
Diff to previous 1.112 (colored) to selected 1.34.6.1 (colored)

Round of uvm.h cleanup.

The poorly named uvm.h is generally supposed to be for uvm-internal
users only.

- Narrow it to files that actually need it -- mostly files that need
  to query whether curlwp is the pagedaemon, which should maybe be
  exposed by an external header.

- Use uvm_extern.h where feasible and uvm_*.h for things not exposed
  by it.  We should split up uvm_extern.h but this will serve for now
  to reduce the uvm.h dependencies.

- Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use
  UVMHIST(ubchist), since ubchist is declared in uvm.h but the
  reference evaporates if UVMHIST is not defined, so we reduce header
  file dependencies.

- Make uvm_device.h and uvm_swap.h independently includable while
  here.

ok chs@

Revision 1.112 / (download) - annotate - [select for diffs], Sun May 17 19:39:15 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.111: +48 -6 lines
Diff to previous 1.111 (colored) to selected 1.34.6.1 (colored)

PR kern/55268: tmpfs is slow

tmpfs_getpages(): handle the PGO_LOCKED case and implement lazy update of
atime/mtime.

Revision 1.111 / (download) - annotate - [select for diffs], Sat May 16 18:31:49 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.110: +6 -7 lines
Diff to previous 1.110 (colored) to selected 1.34.6.1 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.110 / (download) - annotate - [select for diffs], Tue May 12 23:17:41 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.109: +5 -5 lines
Diff to previous 1.109 (colored) to selected 1.34.6.1 (colored)

cache_enter_id(): give it a boolean parameter to indicate whether the cached
identity is valid.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sat Apr 25 11:24:05 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored) next main 1.109 (colored) to selected 1.34.6.1 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.109 / (download) - annotate - [select for diffs], Thu Apr 23 21:47:08 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenpvh-base2
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored) to selected 1.34.6.1 (colored)

PR kern/54759 (vm.ubc_direct deadlock when read()/write() into mapping of itself)

- Add new flag UBC_ISMAPPED which tells ubc_uiomove() the object is mmap()ed
  somewhere.  Use it to decide whether to do direct-mapped copy, rather than
  poking around directly in the vnode in ubc_uiomove(), which is ugly and
  doesn't work for tmpfs.  It would be nicer to contain all this in UVM but
  the filesystem provides the needed locking here (VV_MAPPED) and to
  reinvent that would suck more.

- Rename UBC_UNMAP_FLAG() to UBC_VNODE_FLAGS().  Pass in UBC_ISMAPPED where
  appropriate.

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:03 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.103.2.2: +1 -0 lines
Diff to previous 1.103.2.2 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.34.6.1 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:50 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.103.2.1: +14 -8 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) to selected 1.34.6.1 (colored)

Merge changes from current as of 20200406

Revision 1.108 / (download) - annotate - [select for diffs], Sat Apr 4 20:49:30 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base1, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.107: +6 -2 lines
Diff to previous 1.107 (colored) to selected 1.34.6.1 (colored)

Merge the remaining changes from the ad-namecache branch, affecting namei()
and getcwd():

- push vnode locking back as far as possible.
- do most lookups directly in the namecache, avoiding vnode locks & refs.
- don't block new refs to vnodes across VOP_INACTIVE().
- get shared locks for VOP_LOOKUP() if the file system supports it.
- correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.

Possible future enhancements:

- make the lookups lockless.
- support dotdot lookups by being lockless and inferring absence of chroot.
- maybe make it work for layered file systems.
- avoid vnode references at the root & cwd.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Mar 14 13:37:49 2020 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.106: +6 -2 lines
Diff to previous 1.106 (colored) to selected 1.34.6.1 (colored)

tmpfs_reg_resize(): do nothing if newsize == oldsize.

Revision 1.105.2.3 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:02 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.105.2.2: +6 -8 lines
Diff to previous 1.105.2.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:40 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.105: +6 -8 lines
Diff to previous 1.105 (colored) to selected 1.34.6.1 (colored)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Fri Jan 24 16:48:58 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.105.2.1: +5 -5 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) to selected 1.34.6.1 (colored)

- Put all the namecache stuff back into vnode_impl_t.
- Tidy vfs_cache.c up, finish the comments.
- Finalise how ID information is entered to the cache.
- Handle very small/old systems.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 22:26:25 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.105: +6 -2 lines
Diff to previous 1.105 (colored) to selected 1.34.6.1 (colored)

vfs_lookup:

- Do the easy component name lookups directly in the namecache without
  taking vnode locks nor vnode references (between the start and the leaf /
  parent), which seems to largely solve the lock contention problem with
  namei().  It needs support from the file system, which has to tell the
  name cache about directory permissions (only ffs and tmpfs tried so far),
  and I'm not sure how or if it can work with layered file systems yet.
  Work in progress.

vfs_cache:

- Make the rbtree operations more efficient: inline the lookup, and key on a
  64-bit hash value (32 bits plus 16 bits length) rather than names.

- Take namecache stuff out of vnode_impl, and take the rwlocks, and put them
  all together an an nchnode struct which is mapped 1:1: with vnodes.  Saves
  memory and nicer cache profile.

- Add a routine to help vfs_lookup do its easy component name lookups.

- Report some more stats.

- Tidy up the file a bit.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Sep 18 17:59:15 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.104: +3 -2 lines
Diff to previous 1.104 (colored) to selected 1.34.6.1 (colored)

Add newly created vnodes to the namei cache. The rest of the filesystems
already did that (or they don't support writing). Discussed in tech-kern.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:01 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD

Revision 1.102.14.2 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:57 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.102.14.1: +4 -4 lines
Diff to previous 1.102.14.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.34.6.1 (colored)

Synch with HEAD

Revision 1.104 / (download) - annotate - [select for diffs], Tue Jan 1 10:06:54 2019 UTC (5 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored) to selected 1.34.6.1 (colored)

Add "void *extra" argument to vcache_new() so a file system may
pass more information about the file to create.

Welcome to 8.99.30

Revision 1.102.14.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:04 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD

Revision 1.103 / (download) - annotate - [select for diffs], Mon May 28 21:04:35 2018 UTC (5 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.34.6.1 (colored)

allow tmpfs files to be larger than 4GB.

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:43 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.79.2.1: +197 -191 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored) to selected 1.34.6.1 (colored)

update from HEAD

Revision 1.97.2.4 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:55 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.97.2.3: +4 -6 lines
Diff to previous 1.97.2.3 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:48 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.101: +4 -6 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.102 / (download) - annotate - [select for diffs], Wed Jan 4 10:06:43 2017 UTC (7 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.101: +4 -6 lines
Diff to previous 1.101 (colored) to selected 1.34.6.1 (colored)

Change tmpfs_chsize() to update mtime etc. even if "length == node->tn_size".

Adresses PR kern/51762 "mtime not updated by open(O_TRUNC)"

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:04 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.97.2.2: +3 -2 lines
Diff to previous 1.97.2.2 (colored) to branchpoint 1.97 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.96.4.1.2.1 / (download) - annotate - [select for diffs], Sun Nov 8 01:27:10 2015 UTC (8 years, 4 months ago) by riz
Branch: netbsd-7-0
CVS Tags: netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Changes since 1.96.4.1: +3 -2 lines
Diff to previous 1.96.4.1 (colored) next main 1.96.4.2 (colored) to selected 1.34.6.1 (colored)

Pull up following revision(s) (requested by leot in ticket #1023):
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.101
Make sure that nde->td_node is NULL for asserts.
Thanks and from Mindaugas Rasiukevicius.
Fixes PR kern/50381.

Revision 1.96.4.2 / (download) - annotate - [select for diffs], Sun Nov 8 01:26:56 2015 UTC (8 years, 4 months ago) by riz
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.96.4.1: +3 -2 lines
Diff to previous 1.96.4.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.34.6.1 (colored)

Pull up following revision(s) (requested by leot in ticket #1023):
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.101
Make sure that nde->td_node is NULL for asserts.
Thanks and from Mindaugas Rasiukevicius.
Fixes PR kern/50381.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Oct 29 16:19:44 2015 UTC (8 years, 5 months ago) by leot
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored) to selected 1.34.6.1 (colored)

Make sure that nde->td_node is NULL for asserts.
Thanks and from Mindaugas Rasiukevicius.

Fixes PR kern/50381.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:06 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.97.2.1: +197 -190 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD

Revision 1.100 / (download) - annotate - [select for diffs], Tue Jul 7 09:30:24 2015 UTC (8 years, 8 months ago) by justin
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) to selected 1.34.6.1 (colored)

This enum is likely to be made unsigned by the compiler, so the assertion
will not work and clang objects with -Wtautological-constant-out-of-range-compare

Revision 1.99 / (download) - annotate - [select for diffs], Mon Jul 6 10:07:12 2015 UTC (8 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.98: +196 -189 lines
Diff to previous 1.98 (colored) to selected 1.34.6.1 (colored)

Change tmpfs to vcache.
- Use tmpfs node address as key.
- Remove tn_vlock, field tn_vnode now protected by vcache.
- Add a hold count to tmpfs node to prevent nodes from disappearing
  while tmpfs_fhtovp() trys to vcache_get() them.  Last holder
  destroys reclaimed nodes.
- Remove the now unneeded parent unlock/lock for lookup of '..'.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:21 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD

Revision 1.98 / (download) - annotate - [select for diffs], Mon Apr 20 13:44:16 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored) to selected 1.34.6.1 (colored)

Make vget always return vnode unlocked.

Convert callers who want locks to use vn_lock afterward.

Add extra argument so the compiler will report stragglers.

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Mon Dec 22 02:05:08 2014 UTC (9 years, 3 months ago) by msaitoh
Branch: netbsd-7
CVS Tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: netbsd-7-0
Changes since 1.96: +2 -3 lines
Diff to previous 1.96 (colored) to selected 1.34.6.1 (colored)

Pull up following revision(s) (requested by gson in ticket #344):
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.121
	sys/fs/tmpfs/tmpfs_subr.c: revision 1.97
Store symlinks without a NUL terminator so that lstat(2) returns the
correct length.  Fixes the tmpfs part of PR kern/48864.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Sep 8 14:49:46 2014 UTC (9 years, 6 months ago) by gson
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.96: +2 -3 lines
Diff to previous 1.96 (colored) to selected 1.34.6.1 (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 (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.79: +310 -258 lines
Diff to previous 1.79 (colored) to selected 1.34.6.1 (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 (9 years, 10 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) to selected 1.34.6.1 (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 (9 years, 10 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.96 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:56 2014 UTC (10 years, 2 months 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
Branch point for: netbsd-7
Changes since 1.95: +5 -2 lines
Diff to previous 1.95 (colored) to selected 1.34.6.1 (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 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.94: +2 -3 lines
Diff to previous 1.94 (colored) to selected 1.34.6.1 (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 years, 2 months ago) by pedro
Branch: MAIN
Changes since 1.93: +18 -19 lines
Diff to previous 1.93 (colored) to selected 1.34.6.1 (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 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.92: +10 -3 lines
Diff to previous 1.92 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.91: +11 -2 lines
Diff to previous 1.91 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.90: +4 -3 lines
Diff to previous 1.90 (colored) to selected 1.34.6.1 (colored)

tmpfs_reg_resize: use size_t.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Nov 23 16:35:32 2013 UTC (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.89: +51 -75 lines
Diff to previous 1.89 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.88: +5 -5 lines
Diff to previous 1.88 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.87: +6 -6 lines
Diff to previous 1.87 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.85: +4 -3 lines
Diff to previous 1.85 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) to selected 1.34.6.1 (colored)

mark variable __diagused

Revision 1.83 / (download) - annotate - [select for diffs], Fri Nov 8 15:44:23 2013 UTC (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.82: +216 -161 lines
Diff to previous 1.82 (colored) to selected 1.34.6.1 (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 (10 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.81: +10 -5 lines
Diff to previous 1.81 (colored) to selected 1.34.6.1 (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 (10 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.80: +7 -7 lines
Diff to previous 1.80 (colored) to selected 1.34.6.1 (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 (10 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.79: +3 -6 lines
Diff to previous 1.79 (colored) to selected 1.34.6.1 (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 (11 years, 11 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:37 2012 UTC (11 years, 11 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) to selected 1.34.6.1 (colored)

sync to latest -current.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:50 2012 UTC (12 years 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) to selected 1.34.6.1 (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 (12 years, 4 months 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) to selected 1.34.6.1 (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 (12 years, 7 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) to selected 1.34.6.1 (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 (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.75: +10 -2 lines
Diff to previous 1.75 (colored) to selected 1.34.6.1 (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 (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.74: +4 -12 lines
Diff to previous 1.74 (colored) to selected 1.34.6.1 (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 (12 years, 9 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) to selected 1.34.6.1 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 16 09:21:02 2011 UTC (12 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.73: +4 -7 lines
Diff to previous 1.73 (colored) to selected 1.34.6.1 (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 (12 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.72: +18 -7 lines
Diff to previous 1.72 (colored) to selected 1.34.6.1 (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 (12 years, 9 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.56.4.9 / (download) - annotate - [select for diffs], Tue May 31 03:04:59 2011 UTC (12 years, 10 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.56.4.8 / (download) - annotate - [select for diffs], Tue May 31 01:51:58 2011 UTC (12 years, 10 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) to selected 1.34.6.1 (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 (12 years, 10 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) to selected 1.34.6.1 (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 (12 years, 10 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) to selected 1.34.6.1 (colored)

Fix non-DEBUG build.

Revision 1.71 / (download) - annotate - [select for diffs], Sun May 29 22:29:06 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.70: +187 -114 lines
Diff to previous 1.70 (colored) to selected 1.34.6.1 (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 (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.34.6.1 (colored)

tmpfs_update: comment out assert for now.

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 25 00:06:45 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.34.6.1 (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 (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.67: +74 -74 lines
Diff to previous 1.67 (colored) to selected 1.34.6.1 (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 (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.66: +204 -383 lines
Diff to previous 1.66 (colored) to selected 1.34.6.1 (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 (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.34.6.1 (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 (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.64: +31 -74 lines
Diff to previous 1.64 (colored) to selected 1.34.6.1 (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 (12 years, 10 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) to selected 1.34.6.1 (colored)

Fix vnode interlock sharing.

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 22 04:20:50 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.63: +17 -33 lines
Diff to previous 1.63 (colored) to selected 1.34.6.1 (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 (12 years, 10 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) to selected 1.34.6.1 (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 (12 years, 11 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 1 17:40:54 2011 UTC (13 years ago) by hannken
Branch: MAIN
Changes since 1.62: +9 -4 lines
Diff to previous 1.62 (colored) to selected 1.34.6.1 (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 (13 years 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 13 13:35:12 2011 UTC (13 years, 2 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) to selected 1.34.6.1 (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 (13 years, 4 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) to selected 1.34.6.1 (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 (13 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.59: +2 -4 lines
Diff to previous 1.59 (colored) to selected 1.34.6.1 (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 (13 years, 7 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.46.10.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:36 2010 UTC (13 years, 7 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jul 21 17:52:11 2010 UTC (13 years, 8 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) to selected 1.34.6.1 (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 (13 years, 8 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jul 2 03:29:47 2010 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.34.6.1 (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 (13 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.56: +40 -84 lines
Diff to previous 1.56 (colored) to selected 1.34.6.1 (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 (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored) to selected 1.34.6.1 (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 (14 years 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 11 09:59:41 2009 UTC (14 years, 4 months 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) to selected 1.34.6.1 (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 (14 years, 6 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Thu Sep 3 11:22:05 2009 UTC (14 years, 6 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) to selected 1.34.6.1 (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 (14 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.53: +48 -23 lines
Diff to previous 1.53 (colored) to selected 1.34.6.1 (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 (14 years, 10 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.48.10.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:55 2009 UTC (14 years, 10 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) to selected 1.34.6.1 (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 (14 years, 10 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) to selected 1.34.6.1 (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 (14 years, 10 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:58 2009 UTC (14 years, 11 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 22 22:57:09 2009 UTC (14 years, 11 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) to selected 1.34.6.1 (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 (14 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.50: +12 -28 lines
Diff to previous 1.50 (colored) to selected 1.34.6.1 (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 (14 years, 11 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) to selected 1.34.6.1 (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 (14 years, 11 months ago) by markd
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.34.6.1 (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 (14 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.48: +7 -6 lines
Diff to previous 1.48 (colored) to selected 1.34.6.1 (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 (15 years, 9 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:29 2008 UTC (15 years, 9 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:49 2008 UTC (15 years, 9 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) to selected 1.34.6.1 (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 (15 years, 9 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) to selected 1.34.6.1 (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 (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.46: +2 -9 lines
Diff to previous 1.46 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.46.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:03 2008 UTC (15 years, 10 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) to selected 1.34.6.1 (colored)

sync with head.

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

sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (15 years, 11 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) to selected 1.34.6.1 (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 (16 years 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) to selected 1.34.6.1 (colored)

sync with HEAD

Revision 1.38.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:40 2008 UTC (16 years, 1 month 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.21.4.10 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:53 2008 UTC (16 years, 1 month 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Feb 6 11:23:54 2008 UTC (16 years, 1 month 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) to selected 1.34.6.1 (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 (16 years, 1 month ago) by jmmv
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.34.6.1 (colored)

Drop trailing whitespace.

Revision 1.21.4.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:03 2008 UTC (16 years, 1 month 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 24 17:32:54 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.43: +3 -23 lines
Diff to previous 1.43 (colored) to selected 1.34.6.1 (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 (16 years, 2 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:52 2008 UTC (16 years, 2 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) to selected 1.34.6.1 (colored)

sync with HEAD

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:39 2008 UTC (16 years, 2 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) to selected 1.34.6.1 (colored)

Sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:46 2008 UTC (16 years, 2 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) to selected 1.34.6.1 (colored)

Merge vmlocking2 to head.

Revision 1.38.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:49 2007 UTC (16 years, 3 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.41.2.8 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:34 2007 UTC (16 years, 3 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.41.2.7 / (download) - annotate - [select for diffs], Sat Dec 15 00:51:47 2007 UTC (16 years, 3 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) to selected 1.34.6.1 (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 (16 years, 3 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) to selected 1.34.6.1 (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 (16 years, 3 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) to selected 1.34.6.1 (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 (16 years, 3 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) to selected 1.34.6.1 (colored)

Minor corrections to previous.

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Wed Dec 12 17:33:15 2007 UTC (16 years, 3 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) to selected 1.34.6.1 (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 (16 years, 3 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:45 2007 UTC (16 years, 3 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) to selected 1.34.6.1 (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 (16 years, 3 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 14:42:25 2007 UTC (16 years, 3 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) to selected 1.34.6.1 (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 (16 years, 3 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:10 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.41: +92 -101 lines
Diff to previous 1.41 (colored) to selected 1.34.6.1 (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 (16 years, 4 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) to selected 1.34.6.1 (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 (16 years, 4 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) to selected 1.34.6.1 (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 (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.35.6.5 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:55 2007 UTC (16 years, 4 months 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Nov 10 03:36:16 2007 UTC (16 years, 4 months 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) to selected 1.34.6.1 (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 (16 years, 4 months 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) to selected 1.34.6.1 (colored)

sync with -HEAD

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

sync with HEAD

Revision 1.35.6.4 / (download) - annotate - [select for diffs], Tue Nov 6 21:16:24 2007 UTC (16 years, 4 months 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

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

Merge from vmlocking.

Revision 1.21.4.6 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:15 2007 UTC (16 years, 5 months 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.35.6.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:22 2007 UTC (16 years, 5 months 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) to selected 1.34.6.1 (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 (16 years, 5 months 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:35 2007 UTC (16 years, 5 months 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:25 2007 UTC (16 years, 5 months 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) to selected 1.34.6.1 (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 (16 years, 5 months 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.34.4.9 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:21 2007 UTC (16 years, 5 months 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.34.4.8 / (download) - annotate - [select for diffs], Mon Oct 8 20:19:29 2007 UTC (16 years, 5 months 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) to selected 1.34.6.1 (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 (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.36: +48 -38 lines
Diff to previous 1.36 (colored) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:55 2007 UTC (16 years, 6 months 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

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

Fix another minor concurrency problem.

Revision 1.21.4.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:35 2007 UTC (16 years, 6 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.34.4.5 / (download) - annotate - [select for diffs], Wed Aug 22 20:24:52 2007 UTC (16 years, 7 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) to selected 1.34.6.1 (colored)

Fix some more concurrency problems.

Revision 1.34.4.4 / (download) - annotate - [select for diffs], Tue Aug 21 20:01:31 2007 UTC (16 years, 7 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) to selected 1.34.6.1 (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 (16 years, 7 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:01 2007 UTC (16 years, 7 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) to selected 1.34.6.1 (colored)

Sync with HEAD.

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

Sync with HEAD.

Revision 1.36.6.2 / (download) - annotate - [select for diffs], Mon Aug 6 16:08:56 2007 UTC (16 years, 7 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) to selected 1.34.6.1 (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 (16 years, 7 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 (16 years, 7 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) to selected 1.34.6.1 (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 - [selected], Wed Jul 11 20:09:34 2007 UTC (16 years, 8 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 (16 years, 8 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) to selected 1.34.6.1 (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 (16 years, 9 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) to selected 1.34.6.1 (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 (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored) to selected 1.34.6.1 (colored)

Compile fixes.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:14 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.32: +8 -8 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.34.6.1 (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 (17 years, 1 month 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 22 06:37:00 2007 UTC (17 years, 1 month 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) to selected 1.34.6.1 (colored)

TRUE -> true, FALSE -> false

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:04 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored) to selected 1.34.6.1 (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 (17 years, 2 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 4 15:42:37 2007 UTC (17 years, 2 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) to selected 1.34.6.1 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

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

sync with head.

Revision 1.23.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (17 years, 3 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) to selected 1.34.6.1 (colored)

sync with head.

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

Sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:37 2006 UTC (17 years, 4 months 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) to selected 1.34.6.1 (colored)

__unused removal on arguments; approved by core.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 9 15:06:03 2006 UTC (17 years, 4 months ago) by jmmv
Branch: MAIN
Changes since 1.28: +39 -7 lines
Diff to previous 1.28 (colored) to selected 1.34.6.1 (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 (17 years, 4 months ago) by jmmv
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.34.6.1 (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 (17 years, 4 months ago) by jmmv
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored) to selected 1.34.6.1 (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 (17 years, 5 months ago) by jmmv
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) to selected 1.34.6.1 (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 (17 years, 5 months ago) by jmmv
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.34.6.1 (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 (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored) to selected 1.34.6.1 (colored)

sync with head

Revision 1.24 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored) to selected 1.34.6.1 (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 (17 years, 6 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:13 2006 UTC (17 years, 6 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 3 06:49:30 2006 UTC (17 years, 6 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) to selected 1.34.6.1 (colored)

comment out empty code

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:34 2006 UTC (17 years, 7 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) to selected 1.34.6.1 (colored)

sync with head

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (17 years, 8 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) to selected 1.34.6.1 (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 (17 years, 9 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:36 2006 UTC (17 years, 9 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:14 2006 UTC (17 years, 9 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.21.4.1, Wed Jun 7 22:33:39 2006 UTC (17 years, 9 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 (17 years, 9 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) to selected 1.34.6.1 (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 (17 years, 10 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (17 years, 10 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) to selected 1.34.6.1 (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 (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.18: +29 -23 lines
Diff to previous 1.18 (colored) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 15 00:05:16 2006 UTC (17 years, 10 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) to selected 1.34.6.1 (colored)

kauth fallout

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

integrate kauth.

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

Sync with head.

Revision 1.18.4.3 / (download) - annotate - [select for diffs], Tue Apr 18 12:03:18 2006 UTC (17 years, 11 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) to selected 1.34.6.1 (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 (18 years 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) to selected 1.34.6.1 (colored)

generic_authorize() -> kauth_authorize_generic().

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

Adapt to kernel authorization KPI.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (18 years, 1 month 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 16 14:57:50 2006 UTC (18 years, 1 month 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) to selected 1.34.6.1 (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 (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.17.6.1: +8 -11 lines
Diff to previous 1.17.6.1 (colored) to selected 1.34.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 (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.17: +9 -8 lines
Diff to previous 1.17 (colored) to selected 1.34.6.1 (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 (18 years, 3 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) to selected 1.34.6.1 (colored)

merge ktrace-lwp.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:11 2005 UTC (18 years, 3 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) to selected 1.34.6.1 (colored)

Sync with head.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:29 2005 UTC (18 years, 4 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) to selected 1.34.6.1 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 28 22:28:36 2005 UTC (18 years, 4 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) to selected 1.34.6.1 (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 (18 years, 4 months ago) by dan
Branch: MAIN
Changes since 1.14: +5 -27 lines
Diff to previous 1.14 (colored) to selected 1.34.6.1 (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 (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.2: +6 -6 lines
Diff to previous 1.13.2.2 (colored) to selected 1.34.6.1 (colored)

Adapt to branch

Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 11 15:50:57 2005 UTC (18 years, 4 months 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) to selected 1.34.6.1 (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 (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.13.2.1: +1318 -0 lines
Diff to previous 1.13.2.1 (colored) to selected 1.34.6.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.13.2.1, Tue Nov 8 23:04:03 2005 UTC (18 years, 4 months 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 (18 years, 4 months ago) by yamt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.12: +26 -3 lines
Diff to previous 1.12 (colored) to selected 1.34.6.1 (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 (18 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.11: +65 -10 lines
Diff to previous 1.11 (colored) to selected 1.34.6.1 (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 (18 years, 5 months 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) to selected 1.34.6.1 (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 (18 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.11: +66 -9 lines
Diff to previous 1.11 (colored) to selected 1.34.6.1 (colored)

adapt tmpfs.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 30 14:29:19 2005 UTC (18 years, 6 months 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) to selected 1.34.6.1 (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 (18 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.9: +38 -2 lines
Diff to previous 1.9 (colored) to selected 1.34.6.1 (colored)

tmpfs_getattr: return up-to-date timestamps.

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

Some style fixes in comments.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 23 15:36:15 2005 UTC (18 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.7: +97 -3 lines
Diff to previous 1.7 (colored) to selected 1.34.6.1 (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 (18 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored) to selected 1.34.6.1 (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 (18 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.34.6.1 (colored)

tmpfs_dir_getdotdotdent: correct fileid.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 15 12:34:35 2005 UTC (18 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.4: +58 -44 lines
Diff to previous 1.4 (colored) to selected 1.34.6.1 (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 (18 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.3: +4 -44 lines
Diff to previous 1.3 (colored) to selected 1.34.6.1 (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 (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.2: +3 -5 lines
Diff to previous 1.2 (colored) to selected 1.34.6.1 (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 (18 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored) to selected 1.34.6.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 (18 years, 6 months ago) by jmmv
Branch: MAIN
Diff to selected 1.34.6.1 (colored)

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>