Page MenuHomeFreeBSD

vm_page: drop mpred param from insert_lookup
ClosedPublic

Authored by dougm on May 6 2025, 4:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 16, 10:16 PM
Unknown Object (File)
Thu, Nov 27, 9:26 PM
Unknown Object (File)
Wed, Nov 26, 11:28 AM
Unknown Object (File)
Wed, Nov 26, 2:01 AM
Unknown Object (File)
Tue, Nov 25, 5:17 PM
Unknown Object (File)
Tue, Nov 25, 10:36 AM
Unknown Object (File)
Thu, Nov 20, 4:16 PM
Unknown Object (File)
Thu, Nov 20, 4:14 PM
Subscribers

Details

Summary

There is no longer a sorted page list maintained by a vm_object, so there is no longer a need for the mpred parameter to vm_page_insert_lookup(). Dropping that parameter creates new functions that also don't need that parameter. Drop all those parameters. Some of the functions have names ending in "_after", where "after" refers to the mpred parameter that is being dropped. So that those names make sense, change "_after" to "_iter" in all of them, because they all take pctrie_iter parameters. Make those parameters last in parameter lists, as "mpred" was before.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm requested review of this revision.May 6 2025, 4:45 PM
This revision is now accepted and ready to land.May 6 2025, 8:21 PM
sys/vm/vm_page.c
1475

There is no lookup parameter anymore.

1559–1561

This is really a "fix" to the memq removal, and could be committed separately.

1960–1963

At the very least, the first sentence is still true. Why is it be removed?

sys/vm/vm_page.h
81–84

This is really a "fix" to the memq removal, and could be committed separately.

610–614

This is no longer sorted.

644
dougm marked 5 inline comments as done.May 7 2025, 4:42 PM
dougm added inline comments.
sys/vm/vm_page.c
1559–1561

Okay, I'll restore the comment, so that it can be removed separately later.

1960–1963

I'll restore the first sentence. There is no listq iterator anymore.

sys/vm/vm_page.h
81–84

Okay, I'll restore the comment.

610–614

This is already not sorted. I can sort these in a separate commit before, or after this, or as part of this.

dougm marked 3 inline comments as done.
This revision now requires review to proceed.May 7 2025, 4:42 PM
This revision is now accepted and ready to land.May 7 2025, 9:37 PM
This revision was automatically updated to reflect the committed changes.