Minor cleanup, changed return type of page count functions (from addr_t to size_t,

as that's more correct).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13089 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-06-13 13:02:24 +00:00
parent a69e0ac327
commit b1a248305b
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2002-2005, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
@ -28,8 +28,8 @@ status_t vm_mark_page_range_inuse(addr_t startPage, addr_t length);
status_t vm_page_set_state(vm_page *page, int state);
// get some data about the number of pages in the system
addr_t vm_page_num_pages(void);
addr_t vm_page_num_free_pages(void);
size_t vm_page_num_pages(void);
size_t vm_page_num_free_pages(void);
status_t vm_page_write_modified(vm_cache *cache);

View File

@ -804,14 +804,14 @@ vm_page_set_state(vm_page *page, int page_state)
}
addr_t
size_t
vm_page_num_pages(void)
{
return num_pages;
}
addr_t
size_t
vm_page_num_free_pages(void)
{
return page_free_queue.count + page_clear_queue.count;