Use an iterator instead of tailq pointers in vm_object_populate().
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/vm/vm_object.c | ||
---|---|---|
2156 | I can't use VM_RADIX_FOREACH because when page[start] is NULL, the loop should end but VM_RADIX_FORALL would just start with the first page > start. I can't use VM_RADIX_FORALL because the original code can skip gaps of null pages, and FORALL cannot. |
sys/vm/vm_object.c | ||
---|---|---|
2156 | Perhaps add this text to the commit message, if not as a comment into the code. |
Comment Actions
Use the same iterator for grabbing and for unbusying. Use VM_RADIX_FORALL with an upper bound.
sys/vm/vm_object.c | ||
---|---|---|
2155–2156 |