diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-21 06:12:06 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-21 06:12:06 +0000 |
commit | 2b0ce7630d493faf76549e8cb98f2d54dbacf431 (patch) | |
tree | 4afa69cdc58ac96f2066d76fa0e5c5cbb818c07e /sys/vm | |
parent | df59c79af7326b9c53eaa09bc986ed6b3d9fba6c (diff) | |
download | FreeBSD-src-2b0ce7630d493faf76549e8cb98f2d54dbacf431.zip FreeBSD-src-2b0ce7630d493faf76549e8cb98f2d54dbacf431.tar.gz |
Syntax cleanup and documentation, no operational changes.
MFC after: 1 day
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pageout.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 76920a0..73ef06d 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -294,8 +294,8 @@ more: vm_page_test_dirty(p); if ((p->dirty & p->valid) == 0 || p->queue != PQ_INACTIVE || - p->wire_count != 0 || - p->hold_count != 0) { + p->wire_count != 0 || /* may be held by buf cache */ + p->hold_count != 0) { /* may be undergoing I/O */ ib = 0; break; } @@ -323,8 +323,8 @@ more: vm_page_test_dirty(p); if ((p->dirty & p->valid) == 0 || p->queue != PQ_INACTIVE || - p->wire_count != 0 || - p->hold_count != 0) { + p->wire_count != 0 || /* may be held by buf cache */ + p->hold_count != 0) { /* may be undergoing I/O */ break; } mc[page_base + pageout_count] = p; @@ -714,6 +714,9 @@ rescan0: if (m->flags & PG_MARKER) continue; + /* + * A held page may be undergoing I/O, so skip it. + */ if (m->hold_count) { vm_pageq_requeue(m); addl_page_shortage++; @@ -904,7 +907,8 @@ rescan0: } /* - * If the page has become held, then skip it + * If the page has become held it might + * be undergoing I/O, so skip it */ if (m->hold_count) { vm_pageq_requeue(m); |