The aflags and oflags fields are always initialized by the vm_page.c
allocators.
Details
Details
- Reviewers
alc kib - Commits
- rS326234: Remove unneeded initializations from vm_phys_init_page().
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
You mean that the allocators vm_page_alloc(), vm_page_alloc_contig(), and vm_page_alloc_freelist() overwrite the fields anyway.
What is the point of keeping the function in vm_phys.c ? If moved to vm_page.c, compiler most likely inlines its only use.
Comment Actions
For that, vm_phys_paddr_to_segind() needs to be changed from static to extern. I would be fine with that too.