Use ptoa() or atop() instead of arithmetic with PAGE_SIZE or PAGE_SHIFT.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Since this was first posted for review, changes have made some parts redundant, and other parts incomplete. The patch can no longer be applied to main. Update it to use atop() in more places, and to simplify loops in one function.
| sys/vm/vnode_pager.c | ||
|---|---|---|
| 1526 | I would separate these changes to vnode_pager_undirty_pages() from the rest, which are purely mechanical. | |