Page MenuHomeFreeBSD

LinuxKPI: Move vmap-related code from linux_compat.c to linux_page.c
ClosedPublic

Authored by wulf on Sun, Dec 14, 10:05 PM.
Tags
None
Referenced Files
F140519820: D54223.id168028.diff
Wed, Dec 24, 8:52 PM
Unknown Object (File)
Mon, Dec 22, 7:12 PM
Unknown Object (File)
Sat, Dec 20, 8:47 PM
Unknown Object (File)
Sat, Dec 20, 5:52 AM
Unknown Object (File)
Fri, Dec 19, 10:12 PM
Unknown Object (File)
Fri, Dec 19, 10:12 AM
Unknown Object (File)
Thu, Dec 18, 11:54 PM
Unknown Object (File)
Thu, Dec 18, 9:50 AM

Details

Summary

Coming vmap_pfn() implementation requires is_vmalloc_addr() to be in
the same file with other vmap-related code. So move code out from
the overcrowded file. No functional changes intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69251
Build 66134: arc lint + arc unit

Event Timeline

wulf requested review of this revision.Sun, Dec 14, 10:05 PM
bz requested changes to this revision.Sun, Dec 14, 10:17 PM

Otherwise (assuming the migrating code from one file to the other is a clean move), this seems fine.

sys/compat/linuxkpi/common/src/linux_page.c
687

Please call this lkpi_page_init()

698

Please call this lkpi_page_uninit()

This revision now requires changes to proceed.Sun, Dec 14, 10:17 PM

s/linux_/lkpi_/ in function names

bz added inline comments.
sys/compat/linuxkpi/common/src/linux_page.c
695

Sorry, I missed pointing this out; you could probably also call the uniquifier "lkpi_page" in both SYS(UN)INIT cases.

Otherwise this can go in. And I'll be happy to use the SYSINITs as well later with some other work in progress :)

This revision is now accepted and ready to land.Sun, Dec 14, 10:58 PM