Change the return type of vmspace_swap_count to a long to match the other

vmspace_*_count functions.

MFC after:	3 days
This commit is contained in:
brucec 2011-03-01 11:04:30 +00:00
parent a3f6bc2c11
commit 3bd182f4eb
2 changed files with 3 additions and 3 deletions

View File

@ -2420,13 +2420,13 @@ SYSCTL_NODE(_vm, OID_AUTO, swap_info, CTLFLAG_RD, sysctl_vm_swap_info,
* if the VM object has any swap use at all the associated map entries
* count for at least 1 swap page.
*/
vm_offset_t
long
vmspace_swap_count(struct vmspace *vmspace)
{
vm_map_t map;
vm_map_entry_t cur;
vm_object_t object;
vm_offset_t count, n;
long count, n;
map = &vmspace->vm_map;
count = 0;

View File

@ -380,6 +380,6 @@ int vm_map_unwire(vm_map_t map, vm_offset_t start, vm_offset_t end,
int flags);
int vm_map_wire(vm_map_t map, vm_offset_t start, vm_offset_t end,
int flags);
vm_offset_t vmspace_swap_count(struct vmspace *vmspace);
long vmspace_swap_count(struct vmspace *vmspace);
#endif /* _KERNEL */
#endif /* _VM_MAP_ */