CVS log for src/sys/ufs/lfs/ulfs_dirhash.c
Up to [cvs.NetBSD.org] / src / sys / ufs / lfs
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Aug 7 02:33:47 2022 UTC (2 years, 4 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
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,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +38 -4
lines
If UFS or LFS dirhash is enabled in the kernel, set the dirhash cache
size dependant on memory size. If less than 128MB of memory, default
to no cache. With 128MB of memory or more, use a maximum cache size of
1/64th of memory; cap maximum default cache size to 32MB (for systems
with 2GB of memory or more).
The dirhash cache sizes are still explicityly setable by sysctl(8) or
by adding relevant entry(s) to sysctl.conf(5).
Revision 1.17.18.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:04 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +4 -6
lines
Merge changes from current as of 20200406
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Mar 14 18:08:40 2020 UTC (4 years, 8 months ago) by ad
Branches: 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,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -6
lines
- Hide the details of SPCF_SHOULDYIELD and related behind a couple of small
functions: preempt_point() and preempt_needed().
- preempt(): if the LWP has exceeded its timeslice in kernel, strip it of
any priority boost gained earlier from blocking.
Revision 1.6.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:22 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.6.2.3: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.3: +71 -58
lines
update from HEAD
Revision 1.8.8.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:25 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.8.8.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.8.1: +5 -4
lines
Sync with HEAD
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 20 01:53:38 2016 UTC (8 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: phil-wifi
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -5
lines
Merge -r1.37 of ufs_dirhash.c:
clear i_dirhash sooner, but what lock protects it?
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Jun 20 00:00:47 2016 UTC (8 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
More already-merged or equivalent changes:
ufs_dirhash.c 1.36 corresponds to ulfs_dirhash.c 1.8
ufs_extattr.c 1.43 corresponds to ulfs_extattr.c 1.7
ufs_lookup.c 1.126 does not apply to lfs
ufs_lookup.c 1.127 we already have
ufs_lookup.c 1.128 does not apply to lfs
ufs_lookup.c 1.129 corresponds to ulfs_lookup.c 1.19
ufs_quota1.c 1.19 corresponds to ulfs_quota1.c 1.7
ufs_quota1.c 1.20 corresponds to ulfs_quota1.c 1.8
ufs_quota2.c 1.36 we have equivalent changes for
ufs_rename.c 1.9 corresponds to lfs_rename.c 1.5
ufs_rename.c 1.10 corresponds to lfs_rename.c 1.6
ufs_vnops.c 1.219 corresponds to lfs_vnops.c 1.260 and ulfs_vnops.c 1.19
ufs_vnops.c 1.220 corresponds to lfs_vnops.c 1.261 and ulfs_vnops.c 1.20
ufs_vnops.c 1.221 was superseded by later changes
ufs_vnops.c 1.222 got fixed independently in lfs
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jun 19 23:06:09 2016 UTC (8 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
Mark ufs file versions we're already synced with.
Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:17 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +69 -57
lines
Sync with HEAD
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Sep 21 01:24:23 2015 UTC (9 years, 2 months ago) by dholland
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +16 -16
lines
Add 64-bit directory entry structures, and adjust accessors accordingly.
The LFS64 directory entry has a 64-bit inode number. This is stored as
two 32-bit values to avoid inducing 64-bit alignment requirements.
The exposed type for manipulating directory entries is now
LFS_DIRHEADER, following the same convention as e.g. IFILE and SEGUSE.
(But with LFS_ on it, because.)
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Sep 21 01:22:18 2015 UTC (9 years, 2 months ago) by dholland
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
Oops; LFS_DIRECTSIZ() is going to need the fs as an argument.
Also, it turns out that dirhash needs a compile-time-constant version
of LFS_DIRECTSIZ(LFS_MAXNAMLEN+1), independent of 64-vs-32, so create
LFS_MAXDIRENTRYSIZE for this. Sigh.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Sep 15 15:02:25 2015 UTC (9 years, 2 months ago) by dholland
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +16 -16
lines
Pass around struct lfs_dirheader instead of struct lfs_direct.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Sep 15 15:02:01 2015 UTC (9 years, 2 months ago) by dholland
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -8
lines
Add an accessor function for directory names.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Sep 15 14:58:06 2015 UTC (9 years, 2 months ago) by dholland
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +29 -26
lines
Add and use accessor functions for more of the directory entry fields.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Sep 1 06:16:59 2015 UTC (9 years, 3 months ago) by dholland
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +28 -21
lines
Add new accessors for the d_type and d_namlen fields of struct lfs_direct.
Napalm the old byteswap access logic for these.
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:45 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.2: +19 -25
lines
Rebase to HEAD as of a few days ago.
Revision 1.8.4.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:19 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.8.4.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.4.1: +1165 -0
lines
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.6.4.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:21 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.6.4.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.4.1: +3 -9
lines
sync with head
Revision 1.8.4.1
Tue Feb 25 18:30:13 2014 UTC (10 years, 9 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.8: +0 -1165
lines
file ulfs_dirhash.c was added on branch yamt-pagecache on 2014-05-22 11:41:19 +0000
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:13 2014 UTC (10 years, 9 months ago) by pooka
Branches: 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,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
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,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: yamt-pagecache,
nick-nhusb
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -9
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:38 2013 UTC (11 years, 3 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +20 -20
lines
sync with head
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jul 28 01:10:49 2013 UTC (11 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +20 -20
lines
Migrate the miscellaneous ulfs-level info from struct ulfsmount to
struct lfs.
Put them inside #ifdef _KERNEL there. They are not the only such
members, gross as that is. Unfortunately, moving struct lfs to
lfs_kernel.h does not work.
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:18:39 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +1171 -0
lines
resync from head
Revision 1.6.2.1
Sat Jun 8 22:23:52 2013 UTC (11 years, 6 months ago) by tls
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.6: +0 -1171
lines
file ulfs_dirhash.c was added on branch tls-maxphys on 2013-06-23 06:18:39 +0000
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 8 22:23:52 2013 UTC (11 years, 6 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: tls-maxphys,
rmind-smpnet
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -3
lines
ulfs_dir.h has been emptied; remove it.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jun 8 02:14:46 2013 UTC (11 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +10 -10
lines
DIRBLKSIZ -> LFS_DIRBLKSIZ
DIRECTSIZ -> LFS_DIRECTSIZ
DIRSIZ -> LFS_DIRSIZ
OLDDIRFMT -> LFS_OLDDIRFMT
NEWDIRFMT -> LFS_NEWDIRFMT
IFTODT -> LFS_IFTODT
DTTOIF -> LFS_DTTOIF
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jun 8 02:12:56 2013 UTC (11 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +19 -19
lines
struct direct -> struct lfs_direct
struct dirtemplate -> struct lfs_dirtemplate
struct odirtemplate -> struct lfs_odirtemplate
DT_* -> LFS_DT_*
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jun 6 00:48:04 2013 UTC (11 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +145 -145
lines
Split lfs from ufs step 4:
Massedit all ufs symbols to be "ulfs" instead, to make sure there are
no conflicts with ufs. Confirmed with grep.
(This required changing a few comments that maybe should have been
left alone to say "ulfs", but we'll survive that.)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jun 6 00:44:40 2013 UTC (11 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +8 -8
lines
Split lfs from ufs, part 2:
Change all <ufs/ufs/foo.h> includes to <ufs/lfs/ulfs_foo.h>.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Jun 6 00:40:55 2013 UTC (11 years, 6 months ago) by dholland
Branches: MAIN
Split lfs from ufs, part 1: cut and paste 15000 lines of ufs as "ulfs".
These are verbatim copies except that I've preserved the ufs rcsids
for reference. Also,
ufs/quota.h -> ulfs_quotacommon.h
ufs/ufs_quota.h -> ulfs_quota.h
Splitting lfs from ufs was ok'd by core some years ago. This is not
from my original tree, which became unmergeable after the several sets
of quota changes; I've done the work over again over the last couple
days.
CVSweb <webmaster@jp.NetBSD.org>