Since vm_page_t is a typedef of a pointer to struct vm_page, returning
false is undefined.
Details
Details
make buildkernel
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
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?
Comment Actions
Looks good to me.
sys/vm/vm_reserv.c | ||
---|---|---|
1216 | English is not my tone but it sounds 'or' is more appropriate. | |
1218 | The return type was changed from bool to vm_page_t by commit 0d5fac287294 (vm: alloc pages from reserv before breaking it) but the comments are left unchanged. |