Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102983703
D28901.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
613 B
Referenced Files
None
Subscribers
None
D28901.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D28901: buf: Fix the dirtybufthresh check
Attached
Detach File
Event Timeline
Log In to Comment