Split wsdisplay_usl_ioctl() into two functions -- one which is screen-dependent
and one which isn't.  The latter is now used for ttyEcfg, enabling the
VT-switching ioctls to work on it.  (This allows Linux X servers to work when
/emul/linux/dev/tty0 is linked to /dev/ttyEcfg.)
Enable 'WSSCREEN_REVERSE' scr-capability.
Bring in Kirk McKusick's FFS softdep code on a branch.
Bring in Kirk McKusick's FFS softdep code on a branch.
Fix compile with FFS_EI.
Tell us which fs is being bold.
Add CPPFLAGS+=-I${.CURDIR}/../../sys for convenience. This should be
reverted before the branch is merged with the trunk.
Add -I${.CURDIR}/../../sys for convenience. Should not be merged with
the trunk.
Add CPPFLAGS+=-I${.CURDIR}/../../sys for convenience.
Add workaround hacks to enable the softdep code to call getnewvnode()
when a filesystem is being unmounted. The problem is that the softdep
code stored inode numbers in the worklist structures, and does not
use vnodes. So VFS_VGET must be used to get a vnode during the final
flush stages, and this can call getnewvnode(), resulting in
a vfs_busy() + MNT_UNMOUNT hang.

I've tried to make the softdep code use vnodes, but that's a pain,
since it gets called at points were vnode ops are dangerous (i.e.
interrupt context, and uncertainty whether a vnode is locked, etc).

This is all icky stuff, but it does get things much closer to a
working state..
Clear the MNT_UNMOUNT flag before calling vfs_allocate_syncvnode. It
will cause insmntqueue to be called, which will cause a panic.
Do previous better; add VT_VFS tag check to DIAGNOSTIC case in insmntqueue.
Merge changes in the trickle-sync and softdep code as done by Kirk McKusick
in FreeBSD since the version that we based the branch on. Merging mostly
done by Ethan Solomita <ethan@geocast.com>.

Also, make sure the syncer thread/process isn't active when we're
unmounting a filesystem. This could wreak havoc. XXX should be done
on a per-mountpoint basis, but especially the softdep code would
end up to be a big pile of vfs_busy() calls.
Remove unused variable decl. From Ethan Solomita.
Fix some merge mistakes.
Fix a case where ffs_update should not be called to do its work
synchronously when softdepencies are active.
Give ufs_ihashget an extra argument: the flags passed to vget() for
locking. This way we can avoid locking against ourselves when
ufs_ihashget is called during the flushing of metadata. XXX

Also, comment out a VOP_FSYNC call that I think is now unneeded, and
put a diagnostic printf there to check if this still happens.
Sync with -current.
Sync with -current