Poul-Henning Kamp
156cb26583
Loose the v_dirty* and v_clean* alias macros.
...
Check the count field where we just want to know the full/empty state,
rather than using TAILQ_EMPTY() or TAILQ_FIRST().
2004-10-25 09:14:03 +00:00
Poul-Henning Kamp
a76d8f4ec9
Move the VI_BWAIT flag into no bo_flag element of bufobj and call it BO_WWAIT
...
Add bufobj_wref(), bufobj_wdrop() and bufobj_wwait() to handle the write
count on a bufobj. Bufobj_wdrop() replaces vwakeup().
Use these functions all relevant places except in ffs_softdep.c where
the use if interlocked_sleep() makes this impossible.
Rename b_vnbufs to b_bobufs now that we touch all the relevant files anyway.
2004-10-21 15:53:54 +00:00
Tim J. Robbins
fa2a4d0595
Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoid
...
having to acquire sched_lock when manipulating it in lockmgr(), uiomove(),
and uiomove_fromphys().
Reviewed by: jhb
2004-06-03 01:47:37 +00:00
Poul-Henning Kamp
00cbe31bd8
Send B_PHYS out to pasture, it no longer serves any function.
2003-11-15 09:28:09 +00:00
Tor Egge
f0da6ec99b
Initialize bp->b_offset to the physical offset in partition
...
so GEOM knows where to read from disk.
2003-10-22 18:57:59 +00:00
Alan Cox
9cf8f2f707
The previous change necessitates the addition of a new #include. Otherwise,
...
there is a compilation warning.
2003-08-18 17:27:08 +00:00
Poul-Henning Kamp
b103854847
Don't use a VOP_*() function on our own vnodes, go directly to the
...
relevant internal function, in this case ufs_bmaparray().
2003-08-17 19:26:03 +00:00
Alan Cox
f6c098e569
Revision 1.44 of ufs/ufs/inode.h has made it necessary to add two new
...
#includes to this file. Otherwise, it doesn't compile.
2003-08-16 06:15:17 +00:00
David E. O'Brien
f4636c5959
Use __FBSDID().
2003-06-11 06:34:30 +00:00
Alan Cox
7f758dabbb
Lock the vm object when performing vm_object_page_clean().
...
Approved by: re (rwatson)
2003-05-18 22:02:51 +00:00
Alexander Kabaev
104a9b7e3e
Deprecate machine/limits.h in favor of new sys/limits.h.
...
Change all in-tree consumers to include <sys/limits.h>
Discussed on: standards@
Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-04-29 13:36:06 +00:00
Alan Cox
6134838f99
Sufficient access checks are performed by vmapbuf() that calling useracc()
...
is pointless. Remove the call to useracc().
Don't reinitialize fields that are already initialized by getpbuf().
Reviewed by: tegge
2003-04-06 19:26:30 +00:00
Tor Egge
5e2e6a67c4
Check return value from vmapbuf instead of the function address.
2003-03-27 20:48:34 +00:00
Tor Egge
10dccf8ff2
Eliminate a buffer sleep/wakeup race.
2003-03-27 19:28:11 +00:00
Tor Egge
5bbb806004
Add support for reading directly from file to userland buffer when the
...
O_DIRECT descriptor status flag is set and both offset and length is a
multiple of the physical media sector size.
2003-03-26 23:40:42 +00:00