cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_uma.c
tmpfs_uma.h tmpfs_vfsops.c tmpfs_vnops.c
Xin LI
delphij at FreeBSD.org
Mon Jun 25 18:46:14 UTC 2007
delphij 2007-06-25 18:46:14 UTC
FreeBSD src repository
Modified files:
sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_uma.c
tmpfs_uma.h tmpfs_vfsops.c tmpfs_vnops.c
Log:
MFp4: Several clean-ups and improvements over tmpfs:
- Remove tmpfs_zone_xxx KPI, the uma(9) wrapper, since
they does not bring any value now.
- Use |= instead of = when applying VV_ROOT flag.
- Remove tm_avariable_nodes list. Use uma to hold the
released nodes.
- init/destory interlock mutex of node when init/fini
instead of ctor/dtor.
- Change memory computing using u_int to fix negative
value in 2G mem machine.
- Remove unnecessary bzero's
- Rely uma logic to make file id allocation harder to
guess.
- Fix some unsigned/signed related things. Make sure
we respect -o size=xxxx
- Use wire instead of hold a page.
- Pass allocate_zero to obtain zeroed pages upon first
use.
Submitted by: Howard Su
Approved by: re (tmpfs blanket, kensmith)
Revision Changes Path
1.2 +8 -5 src/sys/fs/tmpfs/tmpfs.h
1.4 +13 -52 src/sys/fs/tmpfs/tmpfs_subr.c
1.2 +6 -18 src/sys/fs/tmpfs/tmpfs_uma.c
1.2 +5 -17 src/sys/fs/tmpfs/tmpfs_uma.h
1.2 +70 -23 src/sys/fs/tmpfs/tmpfs_vfsops.c
1.3 +4 -7 src/sys/fs/tmpfs/tmpfs_vnops.c
More information about the cvs-src
mailing list