Page MenuHomeFreeBSD

D28901.id84562.diff
No OneTemporary

D28901.id84562.diff

Index: sys/kern/vfs_bio.c
===================================================================
--- sys/kern/vfs_bio.c
+++ 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
Tue, Mar 24, 6:40 PM (16 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30265391
Default Alt Text
D28901.id84562.diff (649 B)

Event Timeline