Page MenuHomeFreeBSD

D28901.diff
No OneTemporary

D28901.diff

diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2325,11 +2325,13 @@
bufbdflush(struct bufobj *bo, struct buf *bp)
{
struct buf *nbp;
+ struct bufdomain *bd;
- if (bo->bo_dirty.bv_cnt > dirtybufthresh + 10) {
+ bd = &bdomain[bo->bo_domain];
+ if (bo->bo_dirty.bv_cnt > bd->bd_dirtybufthresh + 10) {
(void) VOP_FSYNC(bp->b_vp, MNT_NOWAIT, curthread);
altbufferflushes++;
- } else if (bo->bo_dirty.bv_cnt > dirtybufthresh) {
+ } else if (bo->bo_dirty.bv_cnt > bd->bd_dirtybufthresh) {
BO_LOCK(bo);
/*
* Try to find a buffer to flush.

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 11:42 AM (22 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14737438
Default Alt Text
D28901.diff (613 B)

Event Timeline