Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160598650
D50622.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D50622.id.diff
View Options
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -462,7 +462,7 @@
vm_object_t object = mc[0]->object;
int pageout_status[count];
int numpagedout = 0;
- int i;
+ int i, runlen;
VM_OBJECT_ASSERT_WLOCKED(object);
@@ -488,6 +488,7 @@
vm_pager_put_pages(object, mc, count, flags, pageout_status);
+ runlen = count;
if (eio != NULL)
*eio = false;
for (i = 0; i < count; i++) {
@@ -543,7 +544,8 @@
*eio = true;
break;
case VM_PAGER_AGAIN:
- count = i;
+ if (runlen == count)
+ runlen = i;
break;
}
@@ -559,7 +561,7 @@
}
}
if (eio != NULL)
- return (count);
+ return (runlen);
return (numpagedout);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 27, 1:35 AM (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34354156
Default Alt Text
D50622.id.diff (722 B)
Attached To
Mode
D50622: vm_pageout: fix pageout_flush
Attached
Detach File
Event Timeline
Log In to Comment