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