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
F108643775: D35791.id108248.diff
Mon, Jan 27, 1:26 AM
Unknown Object (File)
Sun, Jan 26, 1:59 AM
Unknown Object (File)
Sun, Jan 26, 12:52 AM
Unknown Object (File)
Fri, Jan 24, 2:48 AM
Unknown Object (File)
Fri, Jan 17, 9:36 PM
Unknown Object (File)
Sat, Jan 11, 10:46 PM
Unknown Object (File)
Sat, Jan 11, 10:45 PM
Unknown Object (File)
Dec 5 2024, 6:05 PM
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 46388
Build 43277: 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