freebsd-dev/sys/gnu/fs/ext2fs
Poul-Henning Kamp 227ee8a188 Eradicate the variable "time" from the kernel, using various measures.
"time" wasn't a atomic variable, so splfoo() protection were needed
around any access to it, unless you just wanted the seconds part.

Most uses of time.tv_sec now uses the new variable time_second instead.

gettime() changed to getmicrotime(0.

Remove a couple of unneeded splfoo() protections, the new getmicrotime()
is atomic, (until Bruce sets a breakpoint in it).

A couple of places needed random data, so use read_random() instead
of mucking about with time which isn't random.

Add a new nfs_curusec() function.

Mark a couple of bogosities involving the now disappeard time variable.

Update ffs_update() to avoid the weird "== &time" checks, by fixing the
one remaining call that passwd &time as args.

Change profiling in ncr.c to use ticks instead of time.  Resolution is
the same.

Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call
hzto() which subtracts time" sequences.

Reviewed by:	bde
1998-03-30 09:56:58 +00:00
..
COPYRIGHT.INFO Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFO 1995-11-05 23:25:12 +00:00
ext2_alloc.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
ext2_balloc.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
ext2_bmap.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
ext2_extern.h Fixed configuration and linkage of ext2_checkoverlap(). 1998-02-13 00:28:40 +00:00
ext2_fs_sb.h Removed __FreeBSD__ ifdefs. 1997-12-02 10:39:42 +00:00
ext2_fs.h Removed __FreeBSD__ ifdefs. 1997-12-02 10:39:42 +00:00
ext2_inode_cnv.c Don't include <sys/lock.h> in headers when only `struct simplelock' is 1997-12-05 19:55:52 +00:00
ext2_inode.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
ext2_linux_balloc.c Fix a problem with ext2fs so that filesystems mounted at reboot don't 1997-08-04 05:10:31 +00:00
ext2_linux_ialloc.c Removed __FreeBSD__ ifdefs. 1997-12-02 10:39:42 +00:00
ext2_lookup.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
ext2_mount.h Retire LFS. 1998-01-30 11:34:06 +00:00
ext2_readwrite.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
ext2_subr.c Moved some #includes from <sys/param.h> nearer to where they are actually 1998-03-28 10:33:27 +00:00
ext2_vfsops.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
ext2_vnops.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
fs.h Fix a problem with ext2fs so that filesystems mounted at reboot don't 1997-08-04 05:10:31 +00:00
i386-bitops.h ext2_inode_cnv.c: 1995-11-09 08:41:25 +00:00
inode.h Add two new functions, get{micro|nano}time. 1998-03-26 20:54:05 +00:00