diff options
author | dillon <dillon@FreeBSD.org> | 2001-06-11 19:17:05 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-06-11 19:17:05 +0000 |
commit | 633b2a04be1ad521b9f4fe08e15f28419e4c418f (patch) | |
tree | e0043ff371cdc2fa9f279e960845e06c32a2bb74 /sys | |
parent | 36f11773b047aa13c37c25eda17ebbc73ea82312 (diff) | |
download | FreeBSD-src-633b2a04be1ad521b9f4fe08e15f28419e4c418f.zip FreeBSD-src-633b2a04be1ad521b9f4fe08e15f28419e4c418f.tar.gz |
Cleanup the tabbing
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_map.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index d040819..5ee6762 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -237,29 +237,28 @@ vmspace_free(vm) int vmspace_swap_count(struct vmspace *vmspace) { - vm_map_t map = &vmspace->vm_map; - vm_map_entry_t cur; - int count = 0; + vm_map_t map = &vmspace->vm_map; + vm_map_entry_t cur; + int count = 0; - for (cur = map->header.next; cur != &map->header; cur = cur->next) { - vm_object_t object; + for (cur = map->header.next; cur != &map->header; cur = cur->next) { + vm_object_t object; - if ((cur->eflags & MAP_ENTRY_IS_SUB_MAP) == 0 && - (object = cur->object.vm_object) != NULL && - object->type == OBJT_SWAP - ) { - int n = (cur->end - cur->start) / PAGE_SIZE; + if ((cur->eflags & MAP_ENTRY_IS_SUB_MAP) == 0 && + (object = cur->object.vm_object) != NULL && + object->type == OBJT_SWAP + ) { + int n = (cur->end - cur->start) / PAGE_SIZE; - if (object->un_pager.swp.swp_bcount) { - count += object->un_pager.swp.swp_bcount * SWAP_META_PAGES * n / - object->size + 1; - } + if (object->un_pager.swp.swp_bcount) { + count += object->un_pager.swp.swp_bcount * + SWAP_META_PAGES * n / object->size + 1; + } + } } - } - return(count); + return(count); } - /* * vm_map_create: * |