Page MenuHomeFreeBSD

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

Authored by wulf on Sun, Dec 14, 10:05 PM.
Tags
None
Referenced Files
F139727192: D54223.id168028.diff
Mon, Dec 15, 10:14 AM
F139726100: D54223.id168023.diff
Mon, Dec 15, 9:51 AM
F139725738: D54223.id.diff
Mon, Dec 15, 9:44 AM
F139724748: D54223.diff
Mon, Dec 15, 9:25 AM

Details

Reviewers
bz
dumbbell
Group Reviewers
linuxkpi
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 69256
Build 66139: 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