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.
Differential D35906
vm_fault: Remove a redundant parameter to vm_fault_quick_hold_pages() markj on Jul 25 2022, 2:58 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions 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. |