vm_pager: Remove references to KVME_TYPE_DEFAULT in the kernel
Keep the definition around since it's used by userspace. Reviewed by: alc, imp, kib Tested by: pho Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35791
This commit is contained in:
parent
1424f65bbc
commit
7f3c78fbc9
@ -167,7 +167,6 @@ procfs_doprocmap(PFS_FILL_ARGS)
|
||||
case KVME_TYPE_PHYS:
|
||||
type = "phys";
|
||||
break;
|
||||
case KVME_TYPE_DEFAULT:
|
||||
case KVME_TYPE_SWAP:
|
||||
type = "swap";
|
||||
break;
|
||||
|
@ -487,7 +487,7 @@ struct kinfo_lockf {
|
||||
* another process as a series of entries.
|
||||
*/
|
||||
#define KVME_TYPE_NONE 0
|
||||
#define KVME_TYPE_DEFAULT 1
|
||||
#define KVME_TYPE_DEFAULT 1 /* no longer returned */
|
||||
#define KVME_TYPE_VNODE 2
|
||||
#define KVME_TYPE_SWAP 3
|
||||
#define KVME_TYPE_DEVICE 4
|
||||
|
@ -2578,8 +2578,7 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only)
|
||||
if (vp != NULL) {
|
||||
vref(vp);
|
||||
} else if ((obj->flags & OBJ_ANON) != 0) {
|
||||
MPASS(kvo->kvo_type == KVME_TYPE_DEFAULT ||
|
||||
kvo->kvo_type == KVME_TYPE_SWAP);
|
||||
MPASS(kvo->kvo_type == KVME_TYPE_SWAP);
|
||||
kvo->kvo_me = (uintptr_t)obj;
|
||||
/* tmpfs objs are reported as vnodes */
|
||||
kvo->kvo_backing_obj = (uintptr_t)obj->backing_object;
|
||||
|
Loading…
Reference in New Issue
Block a user