The NetBSD Project

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

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4.2.5.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:19 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.4.2.5: +5 -8 lines
Diff to previous 1.4.2.5 (colored) next main 1.4.2.6 (colored)

sync to netbsd-5

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:49 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10.4.1: +471 -0 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.4.2.6 / (download) - annotate - [select for diffs], Sun May 3 13:21:36 2009 UTC (3 years ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.4.2.5: +5 -8 lines
Diff to previous 1.4.2.5 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by martin in ticket #732):
	sys/kern/vfs_dirhash.c: revision 1.10
PR port-vax/41315:
Previous code ususally works since compiler won't put gap between
those struct members but there is no reason to rely on that.
While here, I rewrite the loop using an usual idiom.  It shaves
both source and object code.

Revision 1.1.8.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:57 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.1.8.1: +5 -8 lines
Diff to previous 1.1.8.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.10.4.1, Fri Feb 6 23:56:26 2009 UTC (3 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.10: +0 -471 lines
FILE REMOVED

file vfs_dirhash.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:49 +0000

Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 6 23:56:26 2009 UTC (3 years, 3 months ago) by enami
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, netbsd-6-base, netbsd-6, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, HEAD
Branch point for: yamt-nfs-mp
Changes since 1.9: +5 -8 lines
Diff to previous 1.9 (colored)

Previous code ususally works since compiler won't put gap between
those struct members but there is no reason to rely on that.
While here, I rewrite the loop using an usual idiom.  It shaves
both source and object code.

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:40 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.1: +91 -104 lines
Diff to previous 1.1 (colored)

Sync with HEAD.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.2.2: +89 -102 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Tue Jan 6 23:01:49 2009 UTC (3 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.4.2.4: +4 -3 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored)

Pull up following revision(s) (requested by reinoud in ticket #212):
	sys/kern/vfs_dirhash.c: revision 1.9
When reusing a directory free space slot and thus finding it on the free space
list, do free it back into the pool!

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 28 17:11:26 2008 UTC (3 years, 4 months ago) by reinoud
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

When reusing a directory free space slot and thus finding it on the free space
list, do free it back into the pool!

Revision 1.1.6.3 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.1.6.2: +90 -104 lines
Diff to previous 1.1.6.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sun Nov 2 02:22:26 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.4.2.3: +15 -4 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

Pull up following revision(s) (requested by reinoud in ticket #5):
	sys/kern/vfs_dirhash.c: revision 1.8
Clarify the dirhash locking protocol and remove unnessiary #ifdef DEBUG
flag.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sun Nov 2 02:21:09 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.4.2.2: +9 -4 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Pull up following revision(s) (requested by reinoud in ticket #5):
	sys/kern/vfs_dirhash.c: revision 1.7
Protect the dirhash_queue when purging hashed directories on memory
overflow situations.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sun Nov 2 02:18:20 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.4.2.1: +2 -7 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Pull up following revision(s) (requested by reinoud in ticket #5):
	sys/kern/vfs_dirhash.c: revision 1.6
Remove old KASSERTS that were commented out. Since the dirhash structure is
considered part of the vnode/*_node structure it sure has to be locked or
the code using it is playing russian roulette.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sun Nov 2 02:17:06 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.4: +54 -76 lines
Diff to previous 1.4 (colored)

Pull up following revision(s) (requested by reinoud in ticket #5):
	sys/kern/vfs_dirhash.c: revision 1.5
Cleanup dirhash and make use of the standard hash32_strn() instead of the
handcrafted one.
Note it uses hash32_strn() since arguments can be passed from namei
arguments and thus don't have to be null terminated.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Oct 31 16:04:59 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.7: +15 -4 lines
Diff to previous 1.7 (colored)

Clarify the dirhash locking protocol and remove unnessiary #ifdef DEBUG
flag.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 31 15:48:39 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.6: +9 -4 lines
Diff to previous 1.6 (colored)

Protect the dirhash_queue when purging hashed directories on memory
overflow situations.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 31 15:13:55 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.5: +2 -7 lines
Diff to previous 1.5 (colored)

Remove old KASSERTS that were commented out. Since the dirhash structure is
considered part of the vnode/*_node structure it sure has to be locked or
the code using it is playing russian roulette.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 31 15:01:12 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.4: +54 -76 lines
Diff to previous 1.4 (colored)

Cleanup dirhash and make use of the standard hash32_strn() instead of the
handcrafted one.

Note it uses hash32_strn() since arguments can be passed from namei
arguments and thus don't have to be null terminated.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 30 17:19:18 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
CVS Tags: netbsd-5-base
Branch point for: netbsd-5
Changes since 1.3: +2 -4 lines
Diff to previous 1.3 (colored)

Remove old sysctl numbers not used anymore.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 30 16:41:18 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Make some variables static that ought to have been from the start.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 30 16:17:53 2008 UTC (3 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.1: +14 -15 lines
Diff to previous 1.1 (colored)

Add sysctl's using CTL_CREATE to query and set the memory use of the
generic vfs dirhash code.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:29 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.1.6.1: +487 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (3 years, 7 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.1.4.1: +487 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:32 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.2.1: +487 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.1.6.1, Sat Sep 27 13:01:07 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.1: +0 -487 lines
FILE REMOVED

file vfs_dirhash.c was added on branch haad-dm on 2008-10-19 22:17:29 +0000

Revision 1.1.4.1, Sat Sep 27 13:01:07 2008 UTC (3 years, 7 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.1: +0 -487 lines
FILE REMOVED

file vfs_dirhash.c was added on branch wrstuden-revivesa on 2008-10-10 22:34:14 +0000

Revision 1.1.2.1, Sat Sep 27 13:01:07 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1: +0 -487 lines
FILE REMOVED

file vfs_dirhash.c was added on branch mjf-devfs2 on 2008-10-05 20:11:32 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 27 13:01:07 2008 UTC (3 years, 7 months ago) by reinoud
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, matt-mips64-base2, haad-dm-base1
Branch point for: wrstuden-revivesa, nick-hppapmap, mjf-devfs2, haad-dm

Add generic FS agnostic directory hashing support. Currently only in use by
UDF. Future users could be msdosfs, ufs, nilfs2 (when ready), cd9660 etc.

Note that its not the same as UFS's DIRHASH support; UFS would need a good
cleanup/splitout of directory operations to adopt to this new directory
hashing support since most directory operations are interweaved with the
vnops itself. This is a TODO.

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>