Page MenuHomeFreeBSD

vm_phys: Add a vm_phys_seg_paddr_to_vm_page() helper
ClosedPublic

Authored by markj on Jan 28 2024, 2:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 9:46 PM
Unknown Object (File)
Fri, Jun 28, 8:27 PM
Unknown Object (File)
Fri, Jun 28, 2:27 PM
Unknown Object (File)
Jun 27 2024, 7:36 AM
Unknown Object (File)
Jun 26 2024, 10:42 PM
Unknown Object (File)
Jun 26 2024, 10:42 PM
Unknown Object (File)
Jun 21 2024, 11:43 PM
Unknown Object (File)
Jun 21 2024, 3:27 AM
Subscribers

Details

Summary

No functional change intended.

Suggested by: alc

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Jan 28 2024, 2:36 PM
This revision is now accepted and ready to land.Jan 28 2024, 5:05 PM

Despite the long name, it's still two characters shorter than the original code. :-)

dougm added inline comments.
sys/vm/vm_phys.c
940

This could be applied at vm_page.c:787, if it were visible there.

977

If could be used here, if the fields of vm_phys_fictitious_seg were reordered.

markj added inline comments.
sys/vm/vm_phys.c
940

I made the function externally visible.

977

I think I'd prefer to leave this case as it is. If there were more instances of this pattern, I'd be more inclined to take the suggestion.

markj marked an inline comment as done.

Incorporate one of Doug's suggestions.

This revision now requires review to proceed.Jan 29 2024, 4:33 PM
This revision is now accepted and ready to land.Jan 29 2024, 4:54 PM