Page MenuHomeFreeBSD

vm_pager: Remove references to KVME_TYPE_DEFAULT in the kernel
ClosedPublic

Authored by markj on Jul 12 2022, 4:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 25 2024, 8:56 AM
Unknown Object (File)
Oct 4 2024, 5:16 PM
Unknown Object (File)
Oct 1 2024, 1:24 PM
Unknown Object (File)
Sep 20 2024, 4:54 AM
Unknown Object (File)
Sep 19 2024, 7:05 PM
Unknown Object (File)
Sep 18 2024, 10:07 AM
Unknown Object (File)
Sep 18 2024, 10:06 AM
Unknown Object (File)
Sep 18 2024, 12:46 AM
Subscribers

Details

Summary

Keep the definition around since it's used by userspace.

Diff Detail

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

Event Timeline

markj requested review of this revision.Jul 12 2022, 4:23 PM

Question to consider: What are the implications of userspace using it? Hopefully it's just dead code that never gets executed because KVME_TYPE_DEFAULT is never returned to userspace now...

This revision is now accepted and ready to land.Jul 12 2022, 4:58 PM
kib added inline comments.
sys/sys/user.h
490

May be '/* no longer returned */' ?

In D35791#812216, @imp wrote:

Question to consider: What are the implications of userspace using it? Hopefully it's just dead code that never gets executed because KVME_TYPE_DEFAULT is never returned to userspace now...

Yeah, I expect it'll just be dead code. For instance, procstat -v simply won't print "df" anymore. At some point those references should be cleaned up too.

alc added inline comments.
sys/sys/user.h
490

Seconded.

markj marked 2 inline comments as done.

Make the comment more specific.

This revision now requires review to proceed.Jul 13 2022, 12:29 AM
This revision is now accepted and ready to land.Jul 13 2022, 6:16 AM