Page MenuHomeFreeBSD

vm_reserv_reclaim_contig: Return NULL not false
Needs ReviewPublic

Authored by minsoochoo0122_proton.me on Apr 7 2024, 5:44 AM.
Referenced Files
Unknown Object (File)
Fri, Nov 22, 8:44 AM
Unknown Object (File)
Fri, Nov 22, 8:36 AM
Unknown Object (File)
Fri, Nov 22, 12:14 AM
Unknown Object (File)
Apr 10 2024, 2:17 AM
Unknown Object (File)
Apr 7 2024, 12:28 PM

Details

Reviewers
markj
Group Reviewers
Contributor Reviews (src)
Summary

Since vm_page_t is a typedef of a pointer to struct vm_page, returning
false is undefined.

Test Plan

make buildkernel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 56953
Build 53841: arc lint + arc unit

Event Timeline

I'm not completely familar with FreeBSD's virtual memory system. But it seems the comment still doesn't match the code. Doesn't it return m_ret when the reclaim is successful and null when failed?