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:
parent
a69e0ac327
commit
b1a248305b
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user