Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164665557
D50622.id156335.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
757 B
Referenced Files
None
Subscribers
None
D50622.id156335.diff
View Options
Index: sys/vm/vm_pageout.c
===================================================================
--- sys/vm/vm_pageout.c
+++ 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
Tue, Aug 4, 1:41 AM (6 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35924072
Default Alt Text
D50622.id156335.diff (757 B)
Attached To
Mode
D50622: vm_pageout: fix pageout_flush
Attached
Detach File
Event Timeline
Log In to Comment