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)
Mar 18 2024, 11:31 PM
Unknown Object (File)
Jan 29 2024, 2:49 PM
Unknown Object (File)
Dec 20 2023, 7:50 AM
Unknown Object (File)
Dec 15 2023, 11:29 PM
Unknown Object (File)
Nov 29 2023, 12:29 PM
Unknown Object (File)
Jul 3 2023, 11:30 PM
Unknown Object (File)
Jun 19 2023, 1:23 AM
Unknown Object (File)
Jun 15 2023, 12:55 AM

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.