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)
Wed, Nov 19, 3:32 AM
Unknown Object (File)
Sat, Nov 15, 9:26 PM
Unknown Object (File)
Tue, Nov 11, 2:48 AM
Unknown Object (File)
Thu, Nov 6, 6:23 AM
Unknown Object (File)
Wed, Nov 5, 2:53 AM
Unknown Object (File)
Mon, Nov 3, 1:16 PM
Unknown Object (File)
Mon, Nov 3, 3:51 AM
Unknown Object (File)
Mon, Nov 3, 2:57 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46393
Build 43282: arc lint + arc unit

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