Page MenuHomeFreeBSD

vm_fault: Remove a redundant parameter to vm_fault_quick_hold_pages()
AbandonedPublic

Authored by markj on Jul 25 2022, 2:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 13, 12:55 AM
Unknown Object (File)
Feb 28 2025, 7:56 PM
Unknown Object (File)
Feb 18 2025, 6:48 PM
Unknown Object (File)
Feb 8 2025, 5:13 PM
Unknown Object (File)
Feb 7 2025, 6:53 AM
Unknown Object (File)
Jan 16 2025, 12:12 PM
Unknown Object (File)
Jan 16 2025, 9:06 AM
Unknown Object (File)
Dec 2 2024, 9:39 PM

Details

Reviewers
kib
alc
dougm
Group Reviewers
transport
bhyve
Summary

It looks like this parameter was meant to allow extra pages to be
fetched opportunistically, but this is not implemented. We could add a
new interface to provide this functionality if needed.

No functional change intended.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46549
Build 43438: arc lint + arc unit

Event Timeline

markj requested review of this revision.Jul 25 2022, 2:58 PM

I do not remember for sure, but most likely the idea with max_count was to avoid silly driver mistakes typically causing the kernel stack overwrite. The panic() and not KASSERT() is there for this reason, same as e.g. vm_page_free_prep() panic for the referenced/wired page.

In D35906#815417, @kib wrote:

I do not remember for sure, but most likely the idea with max_count was to avoid silly driver mistakes typically causing the kernel stack overwrite. The panic() and not KASSERT() is there for this reason, same as e.g. vm_page_free_prep() panic for the referenced/wired page.

Ok, I will drop it for now.