HomeFreeBSD

vnode_pager: clean up undirty_pages()

Description

vnode_pager: clean up undirty_pages()

The first (second) loop of vnode_pager_undirty_pages() includes an
if-test to test whether an iteration is the last (first). Move those
if-tests out of their loops. That allows the compiler to unroll the
loops.

Reviewed by: alc, kib
Differential Revision: https://reviews.freebsd.org/D54353

Details

Provenance
dougmAuthored on Dec 26 2025, 10:07 PM
Reviewer
alc
Differential Revision
D54353: vnode_pager: clean up undirty_pages()
Parents
rG350f31973189: kyua: Make "debug -p" skip writing stdout/stderr to tmp files
Branches
Unknown
Tags
Unknown