Page MenuHomeFreeBSD

vm_page: drop mpred param from insert_lookup
ClosedPublic

Authored by dougm on Tue, May 6, 4:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 27, 12:00 AM
Unknown Object (File)
Mon, May 26, 8:25 AM
Unknown Object (File)
Sat, May 24, 7:22 AM
Unknown Object (File)
Thu, May 22, 8:29 PM
Unknown Object (File)
Wed, May 21, 6:05 AM
Unknown Object (File)
Mon, May 19, 6:54 PM
Unknown Object (File)
Sun, May 18, 8:53 AM
Unknown Object (File)
Tue, May 13, 5:46 AM
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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Tue, May 6, 4:45 PM
This revision is now accepted and ready to land.Tue, May 6, 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.Wed, May 7, 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.Wed, May 7, 4:42 PM
This revision is now accepted and ready to land.Wed, May 7, 9:37 PM
This revision was automatically updated to reflect the committed changes.