Poul-Henning Kamp
5b285effb0
Eliminate unnecessary KASSERT.
...
Eliminate a printf which would never tell us anything anyway because the
KASSERT would have triggered.
2004-10-27 06:47:00 +00:00
Poul-Henning Kamp
f6b855f60b
Avoid using bp->b_vp when we already have the vnode by other means.
2004-10-27 06:45:52 +00:00
Poul-Henning Kamp
a40a512387
Eliminate unnecessary KASSERTS.
2004-10-27 06:45:06 +00:00
Maxim Konovalov
2899faf96b
Fix a typo in a comparison appeared in rev. 1.125.
...
Submitted by: JINMEI Tatuya
2004-10-27 05:37:58 +00:00
Tim Kientzle
6b31624278
Allow tar format to read and accept an empty (or non-existent)
...
file. In particular, this allows bsdtar to append (-r) to
an empty file.
Thanks to: Ryan Sommers
While I'm here, straighten out a misleading comment about GNU-compatible
sparse file handling.
2004-10-27 05:15:23 +00:00
Alan Cox
df9f17c3df
Synchronize access to the vm page's PG_BUSY flag using the containing vm
...
object's lock. In the same place, eliminate unnecessary checks for a NULL
vm object pointer.
2004-10-27 02:05:00 +00:00
Warner Losh
58562ff20c
Document that libkvm requires device mem to work.
2004-10-26 21:11:06 +00:00
Lukas Ertl
6c39d46363
Give each plex a separate queue where held back bios are put on.
...
This lowers the CPU usage of the worker thread and prevents a
possible live lock on non-SMP machines.
MFC candidate.
2004-10-26 21:01:42 +00:00
Poul-Henning Kamp
93d244fb1a
KASSERT that we only get to prewrite() on writes.
2004-10-26 20:13:49 +00:00
Poul-Henning Kamp
8dd5650594
White space changes. Add missing static.
2004-10-26 20:13:21 +00:00
Poul-Henning Kamp
53389dd64a
Replace single case switch() with if().
2004-10-26 20:12:25 +00:00
Poul-Henning Kamp
b6e2606155
Vertically align comment.
2004-10-26 20:12:00 +00:00
Poul-Henning Kamp
882e79f620
Remove blank line which crept in.
2004-10-26 20:11:27 +00:00
Poul-Henning Kamp
6229cc508b
Also check that the sectormask is bigger than zero.
...
Wrap this overly long KASSERT and remove newline.
2004-10-26 19:51:57 +00:00
Bruce M Simpson
4cc36d8a8b
Workaround for a recursive acquisition of the driver mutex during device
...
detach; triggered by ether_ifdetach() -> if_delmulti() -> vr_ioctl().
MFC candidate.
PR: kern/62889
MFC after: 3 days
2004-10-26 19:49:45 +00:00
Bruce M Simpson
f674e945aa
Correct a misspelling, 'task_fn' -> 'task_fn_t'.
...
Noticed by: sah at softcardsystems dot com
MFC after: 3 days
2004-10-26 17:14:45 +00:00
Dag-Erling Smørgrav
995356dc10
Uncomment DIRECTIO and NSWBUF_MIN. They are both positive options (i.e.
...
they enable rather than disable code), so they should be on in LINT.
2004-10-26 12:20:57 +00:00
Poul-Henning Kamp
6e77a04170
The island council met and voted buf_prewrite() home.
...
Give ffs it's own bufobj->bo_ops vector and create a private strategy
routine, (currently misnamed for forwards compatibility), which is
just a copy of the generic bufstrategy routine except we call
softdep_disk_prewrite() directly instead of through the buf_prewrite()
indirection.
Teach UFS about the need for softdep_disk_prewrite() and call the
function directly in FFS.
Remove buf_prewrite() from the default bufstrategy() and from the
global bio_ops method vector.
2004-10-26 10:44:10 +00:00
Poul-Henning Kamp
58883a1fe5
Fix syntax errors introduced by last commit.
...
Why isn't DIRECTIO in NOTES/LINT ?
2004-10-26 09:04:20 +00:00
Robert Watson
c427483381
Add a matching tunable for net.inet.tcp.sack.enable sysctl.
2004-10-26 08:59:09 +00:00
Poul-Henning Kamp
5d9d81e7ea
Put the I/O block size in bufobj->bo_bsize.
...
We keep si_bsize_phys around for now as that is the simplest way to pull
the number out of disk device drivers in devfs_open(). The correct solution
would be to do an ioctl(DIOCGSECTORSIZE), but the point is probably mooth
when filesystems sit on GEOM, so don't bother for now.
2004-10-26 07:39:12 +00:00
Alan Cox
cd9c0da805
Hold the lock on the containing vm object when calling
...
vm_page_sleep_if_busy().
2004-10-26 06:58:26 +00:00
Poul-Henning Kamp
9b7cc97f6c
Remove unused si_bsize_best field from struct cdev.
2004-10-26 06:53:00 +00:00
Poul-Henning Kamp
fae974f156
Degeneralize the per cdev copyonwrite callback. The only possible value
...
is ffs_copyonwrite() and the only place it can be called from is FFS which
would never want to call another filesystems copyonwrite method, should one
exist, so there is no reason why anything generic should know about this.
2004-10-26 06:25:56 +00:00
Poul-Henning Kamp
012c59c547
Align comment
2004-10-26 06:15:39 +00:00
Poul-Henning Kamp
ff4782b57d
Don't clear flags we just checked were not set.
2004-10-26 05:57:29 +00:00
Bruce M Simpson
d6fa5d2806
Check that rt_mask(rt) is non-NULL before dereferencing it, in the
...
RTM_ADD case, thus avoiding a panic.
Submitted by: Iasen Kostov
2004-10-26 03:31:58 +00:00
Marc Fonvieille
b0258eb606
Typo: s/Exampes/Examples
2004-10-25 20:56:24 +00:00
Dag-Erling Smørgrav
ecdb24f5d3
Switch the default CFLAGS to -O2 -pipe.
...
Submitted by: obrien
2004-10-25 20:04:50 +00:00
Andre Oppermann
84bb6a2e75
IPDIVERT is a module now and tell the other parts of the kernel about it.
...
IPDIVERT depends on IPFIREWALL being loaded or compiled into the kernel.
2004-10-25 20:02:34 +00:00
Alan Cox
63bb7041cc
Assert that the containing vm object is locked in vm_page_flash().
2004-10-25 19:52:44 +00:00
David E. O'Brien
2ee4b70bec
Don the teflon coated jacket and use the same -O2 optimization options on
...
the 'i386' kernel that we do all our 64-bit kernels.
2004-10-25 18:24:39 +00:00
John-Mark Gurney
2f27e1512c
use NULL instead of 0 when casting/comparing w/ a pointer...
2004-10-25 17:04:40 +00:00
Yaroslav Tykhiy
a39fd5061b
Reword the last change a bit, add mdoc(7) markup.
...
Discussed with: bde
2004-10-25 13:35:03 +00:00
Poul-Henning Kamp
1a1b280063
Get rid of the magic "stash" of cdev structures, we no longer call
...
make_dev() before malloc works.
2004-10-25 13:12:06 +00:00
Poul-Henning Kamp
8c24ef5f78
Use unit number allocation functions for GEOM minor numbers.
2004-10-25 12:28:28 +00:00
Poul-Henning Kamp
e4fea39e9e
Add delete_unrhdr() function.
...
It will fail fatally if all allocated numbers have not been returned first.
2004-10-25 12:27:03 +00:00
Pyun YongHyeon
7a7386a3e2
Device driver for onboard CS4231 audio controller which is found
...
on UltraSPARC workstations. The driver is based on OpenBSD's SBus
cs4231 driver and heavily modified to incorporate into sound(4)
infrastructure. Due to the lack of APCDMA documentation, the DMA
code of SBus cs4231 came from OpenBSD's driver.
The driver runs without Giant lock and supports both SBus and EBus
based CS4231 audio controller. Special thanks to marius for providing
feedbacks during the driver writing. His feedback made it possible
to write hiccup free playback code under high system loads.
Approved by: jake (mentor)
Reviewed by: marius (initial version)
Tested by: marius, kwm, Julian C. Dunn(jdunn AT opentrend DOT net)
2004-10-25 10:29:57 +00:00
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
Pawel Jakub Dawidek
4fda9f547d
- Add 'check' command for checking rules syntax.
...
- Before flushing rules in 'reload' command, check first if rules are
correct.
- Do not duplicate checking if $pf_rules file exists.
2004-10-25 08:12:28 +00:00
Poul-Henning Kamp
ee1d0eb330
Remove vnode->v_bsize. This was a dead-end.
2004-10-25 07:50:59 +00:00
Poul-Henning Kamp
f8fe7a735c
Retire si_stripesize and si_stripeoffset they will not be needed in cdev
...
in the future.
2004-10-25 07:40:54 +00:00
Alan Cox
a50b705403
Use VM_ALLOC_NOBUSY to eliminate vm_page_wakeup() calls and the acquisition
...
and release of the global page queues lock required to make the call.
Remove GIANT_REQUIRED from vm_hold_free_pages(). All of its VM operations
are properly synchronized.
2004-10-25 06:34:14 +00:00
Poul-Henning Kamp
4dcd0ac4cf
Collapse vnode->v_object and buf->b_object into bufobj->bo_object.
2004-10-25 06:02:57 +00:00
Marcel Moolenaar
ac582d7b7f
Remove useless inclusion of <sys/disklabel.h>
...
Obtained from: Dan Markarian <markarian at apple dot com>
2004-10-25 03:44:10 +00:00
Marcel Moolenaar
e3f8c5aa65
Declare variables as static, like I intended.
...
Obtained from: Dan Markarian <markarian at apple dot com>
2004-10-25 03:39:31 +00:00
Marcel Moolenaar
7d744baf22
Fix bogon. Create the BSD label in the FreeBSD slice.
2004-10-25 03:29:21 +00:00
Marcel Moolenaar
e80c38cd22
Catch up with the BSD label changes. The partition offsets are relative
...
to the partition now. While here, make sure we skip unused partition
entries.
2004-10-25 03:27:31 +00:00
Marcel Moolenaar
7199d81ac9
Build gpt(8) on all platforms.
2004-10-25 02:25:17 +00:00
Marcel Moolenaar
6ebab76180
Add byte swapping and UUID encoding/decoding to allow gpt to be compiled
...
on big-endian machines.
Obtained from: Dan Markarian <markarian at apple dot com>
2004-10-25 02:23:39 +00:00